Loading an SQL command file via JDBC

Поиск
Список
Период
Сортировка
От Tauren Mills
Тема Loading an SQL command file via JDBC
Дата
Msg-id NBBBLBKDJMGDNPMDGAABGEFOAEAB.tauren@servlets.net
обсуждение исходный текст
Список pgsql-jdbc
I have a text file that contains a bunch of SQL commands.  I need to execute
all of those commands via JDBC.  Obviously, I could read the file in, parse
it, and execute each command one at a time.  But is there a simple JDBC or
SQL command that will simplify this and automatically load an entire list of
commands?

For instance, I think the MySQL database has something like a "source"
command that might do this.

Thanks,
Tauren



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Dave Cramer"
Дата:
Сообщение: Re: Re: jdbc3
Следующее
От: "Dave Cramer"
Дата:
Сообщение: Re: Loading an SQL command file via JDBC