insert string into db table using sql - TechRepublic
General discussion
January 23, 2001 at 07:41 PM
adouani

insert string into db table using sql

by adouani . Updated 25 years, 3 months ago

statustx=”i’ll do it”
strSQL = “INSERT INTO otherstatus (sendby,sendto,message) ”
strSQL=strSQL & “SELECT ”
strSQL=strSQL & “‘” & empl & “‘ as text1,”
strSQL=strSQL & “‘” & recieverid & “‘ as text2,”
strSQL=strSQL & “‘” & statustx & “‘ as text3 ”

the problem with ‘ in string statustx,it closes the singlr quote in sql statement..how should i do it?

This discussion is locked

All Comments