sspoke Posted September 3, 2007 Share Posted September 3, 2007 I got confused I used to do this before.. but I don't do mysql often so I forgot remember something with AS statement im trying to use name='something' from a different schemas to find data X,Y in a different schema I show picture I want to get X,Y by name from differnet schema basicaly SELECT x,y FROM user_locations, user_credentials WHERE name='testing123' SELECT l.x, l.y FROM user_locations AS l , user_credentials AS c WHERE c.name='testing123' both show up wrong data Quote Link to comment Share on other sites More sharing options...
sspoke Posted September 4, 2007 Author Share Posted September 4, 2007 k i forgot i solved this using SELECT l.x, l.y FROM user_locations AS l, user_credentials AS c WHERE l.id = c.id AND c.name='testing123' sorry kk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.