Possible Duplicate:
select * from table_name where column like ' '
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');
精彩评论