开发者

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

开发者 https://www.devze.com 2023-03-04 13:34 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: select * from table_name where column like '&nbsp'
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

精彩评论

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