Skip to content

Instantly share code, notes, and snippets.

@davidhooey
Created October 25, 2013 14:42
Show Gist options
  • Save davidhooey/7155762 to your computer and use it in GitHub Desktop.
Save davidhooey/7155762 to your computer and use it in GitHub Desktop.
Oracle Byte to Char Length Semantics
select
'alter table ' || table_name || ' modify ( ' || column_name || ' varchar(' || char_length || ' char) );'
from
user_tab_columns
where
data_type = 'VARCHAR2'
and
char_used = 'B'
order by
table_name,
column_name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment