|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
creating tables when application starts
hi,
I am developing an application which requires few tables to be created in a database. I am using mysql. I want all the create statement etc required to be created when the application(written in java with swing components) starts up. Is there a way or some script I can call in the java program to do this? Preethi. |
|
#2
|
||||
|
||||
|
You'll just have to write some code that creates a db connection and executes the queries. Google should turn up some sample code for you.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > creating tables when application starts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|