Qsqlquery
General and Desktop
7
Posts
4
Posters
1.5k
Views
1
Watching
-
Hi,
Haven't tested it, but I would try to escape the character using e.g. it's ascii code
Hope it helps
-
you can use as following :
use \' escape sequence
see -->'\'vermas\''
QString strQuery("insert into emp values(2,'1989-02-02','amit','\'vermas\'','M','2014-01-01')");after executing above using .exec();
in DB it will send as 'verma' in respective column.
hope it helps