MySQL syntax


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Les Toeplitz on October 19, 2010 at 09:44:08:

Here's a basic inquery with different delimiters:

data$ = 'SQLEXECUTE UPDATE ds@5F@orders SET cText="'+wctxt$+'" WHERE oID="'+oid$+'"'

data$ = "SQLEXECUTE UPDATE ds@5F@orders SET cText='"+wctxt$+"' WHERE oID='"+oid$+"'"

In the first case, let wctxt$ equal o'reilly books. The inquery will fail because the single quote embedded in the field terminates the field incorrectly.

In the second case, let wctxt$ equal 10". In this case the double quote will cause the same error. Anybody have a workaround for this?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]