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
Post a Comment