1. EuSQL: Multiple Statements per Query?

Matt, is it possible to issue multiple statements during a query? That is, can
I, with one query, create a database, its tables, and their fields?

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » topic index » view message » categorize

2. Re: EuSQL: Multiple Statements per Query?

cklester wrote:
> 
> Matt, is it possible to issue multiple statements during a query? That is, can
> I, with one query, create a database, its tables, and their fields?

No.  You need to run them separately.  I suppose that you could write a 
routine to do this for you, looking for semi-colons (which are the standard
statement terminators for SQL) and running each statement separately.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuSQL: Multiple Statements per Query?

Matt Lewis wrote:
> cklester wrote:
> > Matt, is it possible to issue multiple statements during a query? That is,
> > can
> > I, with one query, create a database, its tables, and their fields?
> No.  You need to run them separately.  I suppose that you could write a 
> routine to do this for you, looking for semi-colons (which are the standard
> statement terminators for SQL) and running each statement separately.

Yeah, I thought of that after I posted my message. It would be a simple
parse(myQuery,',') and then loop through that. I just didn't know what the
standard line terminator was. Thanks! :)

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu