Subject | Re: [firebird-support] Escaping characters ?! |
---|---|
Author | Martijn Tonies |
Post date | 2004-12-09T13:55:43Z |
Hello,
Values ('Root''s test string', ...
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server
Upscene Productions
http://www.upscene.com
> We selected Firebird SQL for our embedded system and now I'm writingRepeat your single quote so you get two single quotes:
> Java code for our application.
>
> I tried to look everywhere in the net for information how to escape
> characters like ' from strings, but I didn't find anything..
>
> So how to do this in firebird
>
> insert into table (col1,col2) values('Root's test string', 'string
> 2');
Values ('Root''s test string', ...
> table is described to have two colums both varchar(100)With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server
Upscene Productions
http://www.upscene.com