MySQL R7 question
#3

I'm afraid I do not really understand your first question. You can write a constraint in the form of
PHP код:
INSERT INTO table (string1string2numberVALUES ('foo''bar'42ON DUPLICATE KEY UPDATE number 43
Not sure if that's what you want.

Second question; yes you may write something like that but it won't be very efficient if you're going to update multiple values at a time.

Third question; mysql_real_escape_string should be used for any and all user input. http://en.wikipedia.org/wiki/SQL_injection
Reply


Messages In This Thread
MySQL R7 question - by dusk - 11.05.2013, 05:39
Re: MySQL R7 question - by dusk - 12.05.2013, 12:01
Re: MySQL R7 question - by Vince - 12.05.2013, 12:18
Re: MySQL R7 question - by dusk - 12.05.2013, 15:13
Re: MySQL R7 question - by Vince - 12.05.2013, 15:34
Re: MySQL R7 question - by dusk - 12.05.2013, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)