Jul 7, 2004 #1 gtarrant Technical User Joined Jul 29, 2001 Messages 43 Location US Is there a way to do this within an sql script? Here's what I'm dealing with: PROD SQL> / update ps_position_data set descrlong = descr where descrlong <= ' ' * ERROR at line 1: ORA-00997: illegal use of LONG datatype Thank you for your help.
Is there a way to do this within an sql script? Here's what I'm dealing with: PROD SQL> / update ps_position_data set descrlong = descr where descrlong <= ' ' * ERROR at line 1: ORA-00997: illegal use of LONG datatype Thank you for your help.
Jul 7, 2004 #2 HimanB IS-IT--Management Joined Nov 25, 2002 Messages 231 Location IN Hi, You can update a long column but it cannot be used in the WHERE clause. Here is an example how to update a long column: Code: SQL> create table t1(a number,b long); Table created. SQL> insert into t1 values(1,'This is long'); 1 row created. SQL> commit; Commit complete. SQL> update t1 set b='This is updated long' where a=1; 1 row updated. SQL> commit; Commit complete. SQL> HTH Regards Himanshu Upvote 0 Downvote
Hi, You can update a long column but it cannot be used in the WHERE clause. Here is an example how to update a long column: Code: SQL> create table t1(a number,b long); Table created. SQL> insert into t1 values(1,'This is long'); 1 row created. SQL> commit; Commit complete. SQL> update t1 set b='This is updated long' where a=1; 1 row updated. SQL> commit; Commit complete. SQL> HTH Regards Himanshu