Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

SQL Insert And Apostrophe (2 replies)

$
0
0
Hi All

I am needing some advice constructing the contents of a variable to be passed to SQL in an insert statement where the contents of the variable contains an apostrophe.

I have tried replacing "'"with "''" using:

Replace(MyString,"","''")

I am still getting a failed insert when using HExecuteSQLQuery.

Any ideas on the best way to handle this?

Cheers
André

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>