0 Replies - 361 Views - Last Post: 03 February 2012 - 06:07 PM Rate Topic: -----

Topic Sponsor:

#1 AVReidy  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 18
  • View blog
  • Posts: 226
  • Joined: 17-February 11

Can I make a conditional insert?

Posted 03 February 2012 - 06:07 PM

Nevermind, sorry - I found out you have to use UPDATE...

I can't get this to work, and from what I get from searching it on Google, it almost seems unheard of. I want to make a query like:
INSERT INTO users (about) VALUES ('About me...') WHERE user_id = 1;


Why is it commonplace to select values conditionally but seemingly impossible to retrieve them WHERE you want them from? Would having a NULL value where I'm trying to insert 'About me...' be a problem?

Thank you

This post has been edited by AVReidy: 03 February 2012 - 06:21 PM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1