Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

assighn table id  RSS feed

 
mkabdul kadermk
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


can i assign id for each table in mysql database???
if assign , explain it..
 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes buddy you can ...

just try like this ... while creating a query ... e.g.

String query = "Select * from Titles T, Names N where T.name = N.name";

I hope this'll work
 
mkabdul kadermk
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lalit Mehra wrote:yes buddy you can ...

just try like this ... while creating a query ... e.g.

String query = "Select * from Titles T, Names N where T.name = N.name";

I hope this'll work


thanks for reply

i cant understand this one..hw assign unique id for table...

that id returns table name...

hw can i do it??
 
mkabdul kadermk
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lalit Mehra wrote:yes buddy you can ...

just try like this ... while creating a query ... e.g.

String query = "Select * from Titles T, Names N where T.name = N.name";

I hope this'll work


thanks for reply

i cant understand this one..

hw assign unique id for table...

how do i set id for each table in database??

that id is used to find that table name...

hw can i do it??

please reply me..

thank you...
 
Jan Cumps
Bartender
Posts: 2628
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do check your private messages. There is a message for you regarding an administrative matter.
And please be patient.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!