PDA

View Full Version : how do i select


sabret00the
06-04-2004, 04:13 PM
how do i select ALL data from a database concerning a specific userid?

something along the lines of
SELECT * FROM * WHERE userid=XX

Xenon
06-04-2004, 04:30 PM
nope, you have to use joins
SELECT *
FROM user
INNER JOIN userfield USING(userid)
INNER JOIN usertextfield USING(userid)
...
WHERE user.userid = xx

sabret00the
06-04-2004, 05:05 PM
thanks :)