开发者

How to insert & in oracle using toad? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

select * from table_name where column like '&nbsp'

How d开发者_如何学Pythono you insert the & symbol as data in an Oracle database, using Toad? Example:

INSERT INTO <table_name> 
  (column)
VALUES 
  ('AT & T');

When executing script asking new value for T...


Use this:

insert into my_table values ('AT &' || 'T');

You can also try using:

set define off;

In your environment so &Something won't be treated as if it is an input variable. But I don't know where to put that in TOAD.


SET DEFINE OFF will stop sqlplus interpreting & this way.

this will also work

set define off;
insert into tablename values( 'AT & T');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜