Created
October 25, 2013 14:42
-
-
Save davidhooey/7155762 to your computer and use it in GitHub Desktop.
Oracle Byte to Char Length Semantics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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