dbTalk Databases Forums  

Pervasive SQL 2000i

comp.databases.btrieve comp.databases.btrieve


Discuss Pervasive SQL 2000i in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sectatrix@gmail.com
 
Posts: n/a

Default Pervasive SQL 2000i - 08-15-2006 , 03:54 AM






Hi, i'm new in sql.
How can i run two statement in one query?
Example ;
create table tmpTable (AField char(8))
insert into tmpTable values ('12345678')

Pervasive Control Center returns syntax error in this example
My ODBC driver version is 3.5


Reply With Quote
  #2  
Old   
Wayne
 
Posts: n/a

Default Re: Pervasive SQL 2000i - 08-15-2006 , 07:39 PM






Hi,

As far as I know, those are two separate queries.

To separate them in the Pervasive Control Center, simply insert a "#"
(without the quotes) at the end of each statement. The PCC recognizes
the "#" or the semicolon (which is the standard termination character)
but defaults to the "#". You can change it to the semicolon if you
wish, under Preferences.

If you want to execute all the statements, I don't know if you can do
this in the v2000i PCC or not, but in v8 and v9 there is the capability
to "Execute all Queries" in the query window.

Hope this helps.

Wayne
www.analyticabiz.com
Analytica Business Systems, Inc.
A Premier Pervasive Partner

To subscribe to our Pervasive news feed:
www.analyticabiz.com/rss20.php

- Nascondi testo tra virgolette -

sectatrix (AT) gmail (DOT) com ha scritto:

Quote:
Hi, i'm new in sql.
How can i run two statement in one query?
Example ;
create table tmpTable (AField char(8))
insert into tmpTable values ('12345678')

Pervasive Control Center returns syntax error in this example
My ODBC driver version is 3.5


Reply With Quote
  #3  
Old   
sectatrix@gmail.com
 
Posts: n/a

Default Re: Pervasive SQL 2000i - 08-16-2006 , 01:49 AM



Thanks Wayne for your help.
I know # seperator character too. But it doesnt works in ODBC
functions.
Maybe i must try in other versions.

Wayne yazdi:
Quote:
Hi,

As far as I know, those are two separate queries.

To separate them in the Pervasive Control Center, simply insert a "#"
(without the quotes) at the end of each statement. The PCC recognizes
the "#" or the semicolon (which is the standard termination character)
but defaults to the "#". You can change it to the semicolon if you
wish, under Preferences.

If you want to execute all the statements, I don't know if you can do
this in the v2000i PCC or not, but in v8 and v9 there is the capability
to "Execute all Queries" in the query window.

Hope this helps.

Wayne
www.analyticabiz.com
Analytica Business Systems, Inc.
A Premier Pervasive Partner

To subscribe to our Pervasive news feed:
www.analyticabiz.com/rss20.php

- Nascondi testo tra virgolette -

sectatrix (AT) gmail (DOT) com ha scritto:

Hi, i'm new in sql.
How can i run two statement in one query?
Example ;
create table tmpTable (AField char(8))
insert into tmpTable values ('12345678')

Pervasive Control Center returns syntax error in this example
My ODBC driver version is 3.5


Reply With Quote
  #4  
Old   
Wayne
 
Posts: n/a

Default Re: Pervasive SQL 2000i - 08-16-2006 , 02:27 PM



I didn't get any syntax errors when I entered your two queries into the
v9 PCC. What syntax errors are you getting?

sectatrix (AT) gmail (DOT) com ha scritto:

Quote:
Thanks Wayne for your help.
I know # seperator character too. But it doesnt works in ODBC
functions.
Maybe i must try in other versions.

Wayne yazdi:
Hi,

As far as I know, those are two separate queries.

To separate them in the Pervasive Control Center, simply insert a "#"
(without the quotes) at the end of each statement. The PCC recognizes
the "#" or the semicolon (which is the standard termination character)
but defaults to the "#". You can change it to the semicolon if you
wish, under Preferences.

If you want to execute all the statements, I don't know if you can do
this in the v2000i PCC or not, but in v8 and v9 there is the capability
to "Execute all Queries" in the query window.

Hope this helps.

Wayne
www.analyticabiz.com
Analytica Business Systems, Inc.
A Premier Pervasive Partner

To subscribe to our Pervasive news feed:
www.analyticabiz.com/rss20.php

- Nascondi testo tra virgolette -

sectatrix (AT) gmail (DOT) com ha scritto:

Hi, i'm new in sql.
How can i run two statement in one query?
Example ;
create table tmpTable (AField char(8))
insert into tmpTable values ('12345678')

Pervasive Control Center returns syntax error in this example
My ODBC driver version is 3.5


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.