Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to run sql file automatically? I have these files
    primarykey
    data
    text
    <p>Is there any sofeware or plug-ins that can help run these files automatically? Actually I have a demo which is given by someone. It is a zip file which can be imported into eclipse. It is related to hibernate. Within the whole project, there is a folder contains a batch of sql files. </p> <p>They are "CREAT_DATABASE.sql", "00_CREATE_OBJECTS.sql", "00_DROP_OBJECTS.sql", "01_ACCOUNT.sql" and "02_HIBERNATE_UNIQUE_KEY.sql" </p> <p>I am wondering that is there any way to run these automatically? since the file names are some kinds of indicators that can help some software to run them according to the names. If yes, which one can do that kind of job? If no, are the file names only used to tell the users which sql file is the first to run and so forth? why don't the owner merge all the sql commands into one file? </p> <p>thanks a lot for your help</p> <p>while I cannot add image due to the "spam prevention mechanism" here is the image link if you want to see that. <a href="http://www2.comp.polyu.edu.hk/~11501579g/portal/img/Capture.PNG" rel="nofollow">http://www2.comp.polyu.edu.hk/~11501579g/portal/img/Capture.PNG</a></p> <p>It includes two databases, I can use either one of them as long as I set the right properties like "hibernate.connection.driver_class", "hibernate.connection.url" etc in the hibernate.cfg.xml. Actually the only problem is I DO NOT konw the way to run the sql files like I mentioned before, namely run them automatically based on the file names, though I can run sql commands one by one which are extracted from the sql files to create tables and so forth. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload