Click to See Complete Forum and Search --> : Update question


cleggfr
04-24-2003, 09:38 AM
Hi,

I've got a table t1 with a column TEST thats a varchar2(16). It holds a loads of records padded records, i.e they're all length 16 even though some entries are only 4 characters long. I need to update the column TEST to remove the padding but am struggling to come up with the SQL. Can anyone help please!?

DaPi
04-24-2003, 09:58 AM
UPDATE T1 SET TEST=TRIM(TEST);

cleggfr
04-24-2003, 10:04 AM
D'oh!! And there was me messing with self joins and stuff! Not having a good day :confused: