permaculture playing cards
The moose likes JDBC and Relational Databases and the fly likes ---= sql String =--- Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "---= sql String =---" Watch "---= sql String =---" New topic

---= sql String =---

du sixiang

Joined: Mar 10, 2003
Posts: 3
why the sql String "select u.user_name,u.user_id from db_users u ,db_orders o where
u.user_id=o.ore" can search what i want,but the
String "select u.user_name,u.user_id from db_users u ,db_orders o,db_vip_users v where
u.user_id=o.ore" show me "no rows"?
Ren Bia

Joined: Mar 11, 2003
Posts: 1
Because your select result part of your sql contains no columns of the table v and your where part of the sql also have no connect string of the table v and u/o!
I agree. Here's the link:
subject: ---= sql String =---
It's not a secret anymore!