Connecting Tech Pros Worldwide Help | Site Map

double quotes inside a string

  #1  
Old November 13th, 2005, 11:03 AM
Zlatko Matiæ
Guest
 
Posts: n/a
I have a problem when working with PostrgeSQL as back-end. Namely,
PostgreSQL syntax uses doble quotes for table names and field names. For
example:
select = from public."Customers"
Therefore, when I write it as a string of a pass-through query or Command
Text of ADO Command object it looks like:
"select * from public."Customers""
anbd VBA thinks that the first quote after public. is the end of statement.

How to solve it ?

Thanks.



  #2  
Old November 13th, 2005, 11:04 AM
Matthias Klaey
Guest
 
Posts: n/a

re: double quotes inside a string


"Zlatko Matiæ" <zlatko.matic1@sb.t-com.hr> wrote:
[color=blue]
>I have a problem when working with PostrgeSQL as back-end. Namely,
>PostgreSQL syntax uses doble quotes for table names and field names. For
>example:
>select = from public."Customers"
>Therefore, when I write it as a string of a pass-through query or Command
>Text of ADO Command object it looks like:
>"select * from public."Customers""
>anbd VBA thinks that the first quote after public. is the end of statement.
>
>How to solve it ?
>
>Thanks.
>
>[/color]

Use two double quotes inside the string:

"select * from public.""Customers"""

HTH
Matthias Kläy
--
www.kcc.ch

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Script and Double Quotes MrIT answers 8 October 17th, 2007 02:39 PM
single quotes, double quotes and "undefined index" bill answers 15 July 17th, 2007 02:15 PM
Double Quotes In Data? (PeteCresswell) answers 4 November 13th, 2005 03:06 PM
SQL syntax: How to insert srting with double quotes? deko answers 24 November 13th, 2005 01:53 PM