Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Does WHERE have to point to PRIMARY KEY?

Codes here !

Moderators: macek, egami, gesf

Does WHERE have to point to PRIMARY KEY?

Postby Tony121076 » Fri Jan 31, 2003 3:14 am

when doing an "UPDATE" or "DELETE" mySQL call, does the WHERE need to refer to the PRIMARY KEY, or can it refer to and columb name?
New php-forum User
New php-forum User
Posts: 28
Joined: Fri Jan 03, 2003 4:00 pm

Postby Redcircle » Fri Jan 31, 2003 12:21 pm

NO.. it is just recommended because it is faster.
User avatar
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.