sql >> Database >  >> RDS >> Oracle

Vervang CHAR door VARCHAR2

select 'ALTER TABLE "' || owner || '"."' || table_name
|| '" MODIFY ("' || column_name
|| '" VARCHAR2(' || data_length || '));'
from all_tab_columns tc
where data_type = 'CHAR'
and owner = :schemaname
and exists (
    select 1
    from all_tables t
    where tc.owner = t.owner
    and tc.table_name = t.table_name
);



  1. PHP/MySQL:UPDATE-query's combineren?

  2. MySQL-injectiequery

  3. Slaapstand en Oracle-reeks

  4. Java controleert of de waarde in de database bestaat