Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-06

how to use odbc Allow multiple statements

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys
to Michael Van Canneyt

Op 2010-06-10 08:23, Michael Van Canneyt het geskryf:

Just use 2 TSQLQuery will set up a connection to MySQL, as far as I remember.

[...maybe he meant the following...]

Is there a SQL Script component in SqlDB? So that you can pass it a DDL script file which will contain many sql statements to setup a DB or upgrade an existing one?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/
Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
Op 2010-06-10 08:23, Michael Van Canneyt het geskryf: > > Just use 2 TSQLQuery will set up a connection to > MySQL, as far as I remember. [...maybe he meant the following...] Is there a SQL Script component in SqlDB? So that you can pass it a DDL script file which will contain many sql statements to setup a DB or upgrade an existing one?

In that case, the answer is: yes there is: TSQLScript. It will parse the script and send the SQL statements one by one to the connection.

Michael.

liuzg2

but

can TSQLScript result as tdateset?
1:
select top 1 * into #x from
r_sale;

select * from #x
2:declare @busno VARCHAR(10)
select @busno='0001'
CREATE TABLE #wareid ......
select * from #wareid
where

liuzg2

but can TSQLScript result as tdateset?
1: select top 1 * into #x from r_sale; select * from #x

2:declare @busno VARCHAR(10)
select @busno='0001'
CREATE TABLE #wareid ......
select * from #wareid where