sql - How to insert additional characters into a PostgreSQL Database Table? -


i work programming language java , insert data additional characters database table.

here example:

insert bv_usergroup (id, active, description, deleted) values (1, true, administrator \(company\), false); 

the additional character sign "(" , ")". how can solve problem? , correct insert boolean values how can see in sql example?

thenaks , greetz marwief

character literals (aka "strings") have enclosed in single quotes:

insert bv_usergroup     (id, active, description, deleted)  values     (1, true, 'administrator (company)', false); 

for more details on how specifiy literals, please see manual:
http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#sql-syntax-constants


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -