im a pretty new self student and i am trying to insert Data in different tables but using same ID like that and for the tab 3 set a default Date like 2000/01/01: My tables are like:
tab1 Id1 varchardate1
tab2 ID Id1 varchardate2
tab3 ID Id1 datetime
Im using that code to insert Data in the tab1:
String sub1 = "Insert Into tab1 (`varchardate1`) values "
+ "(" + jTextField1.getText() + "')";
System.out.println(sub1);
Now i can do the same but i want to save that Id1 and use it for the other 2 tables and for tab3 i want to set that default datetime 2000/01/01.
Thanks for the help in advance.