Thanks for reply, pvaldes.
I noticed I misunderstood how to escape single quotes in sql. I thought of the case like this
And this is nothing surprise.insert into foo (bar,boo) values('''a', 'b');
I changed test data with real SQL with your advice. SQLite and Postgres accept these commands.select '--foo';
So far, so good.drop table foo; create table foo( --tabel foo bar text, --fld name boo text --again ); --populate insert into foo (bar,boo) values('''a', 'b'); -- insert quote's sake insert into foo (bar,boo) values('c', 'd'); -- another line select 'test' || 'abc' as a ; -- maybe you use dual wi +th oracle? select 'test''s' || 'abc' as a ; -- maybe you use dual wi +th oracle? select '--foo';
In reply to Re^3: Regex: Identifying comments
by remiah
in thread Regex: Identifying comments
by zuma53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |