def get_type_length(data_type, data_length, char_length, char_used):
	"""get string with length of field"""
	if data_type == 'NUMBER':
		if data_length == ',':
			return ''
		if data_length == ',0':
			return '(*,0)'
		return '(%s)' % (data_length)
	if data_type == 'RAW':
		return ' (%s)' % (data_length)
	if data_type in ('CHAR', 'VARCHAR2', 'NCHAR', 'NVARCHAR2'):
		char_used_str = 'BYTE'
		if char_used.lower().startswith('c'):
			char_used_str = 'CHAR'
		return ' (%.0f %s)' % (char_length, char_used_str)
	return ''
get string with length of field
recipes/Python/576534_Dump_Oracle_db_schema_to_text/recipe-576534.py