Re: R: [PHP-DB] Oracle SQL Problem

From: Date: Mon, 09 Oct 2000 14:31:31 +0000
Subject: Re: R: [PHP-DB] Oracle SQL Problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3433@lists.php.net to get a copy of this message
All in uppercase except the table name and field name. Like the following: SELECT names FROM table1 I write all the SQL likes that. UNION and subquery doesn't work. Other SQL works. "Roberto Sartor" <roberto@mionetto.it> ????? news:81035034B8BED311BAA20050044C992113FBF2@SRVCOM... > Were your queries in UPPERCASE chars? > > Ciao > Roberto > > > > -----Messaggio originale----- > > Da: Old Keung [mailto:wlskspam@usa.net] > > Inviato: domenica 8 ottobre 2000 3.54 > > A: php-db@lists.php.net > > Oggetto: [PHP-DB] Oracle SQL Problem > > > > > > Hello All, > > > > I try to execute the following SQLs from php: > > > > SQL 1: > > SELECT name FROM tb01 > > UNION ALL > > SELECT name FROM tb02 > > > > SQL 2: > > SELECT name > > FROM tb01 > > WHERE name IN ( > > SELECT name FROM tb02 > > ) > > > > The result is "Invalid Column Name" for each SQL statement. > > > > I am using php4, Oracle and openlink. I have tested the above > > statement in > > Oracle sqlplus and they work. But when I execute exactly the > > same sentence, > > it doesn't work. > > > > Could anyone point out where is the problem? Does the > > openlink has different > > syntax for the SQL statement? > > > > Thanks in advance. > > > > William > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: > > php-list-admin@lists.php.net > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#3433) next »