How to insert & into oracle using a toad?

Possible duplicate:
select * from table_name, where the column is of type '& nbsp'

How do you insert data & symbolinto an Oracle database using Toad? Example:

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

When executing a script requesting a new value for T ...

+3
source share
2 answers

Use this:

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

You can also try:

set define off;

Your environment &Somethingwill not be processed as if it were an input variable. But I do not know where to put this in TOAD.

+9
source

SET DEFINE OFF will stop sqlplus interpretation and that way.

it will also work

set define off;
insert into tablename values( 'AT & T');
+4
source

All Articles