[thelist] SQL help

Tim Burgan email at timburgan.com
Fri Jan 21 01:11:17 CST 2005


hello

is this the correct SQL to seach if a username already exist across two 
tables, both containing id (unique number) and username (unique string) 
fields?


SELECT id
FROM tblStaff, tbl Students
WHERE username = '$username';


if the username does NOT exist the recordset will return EOF (End of 
File). Is this correct?

tim






More information about the thelist mailing list