篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text criar modelo de dados相关的知识,希望对你有一定的参考价值。
select 'public ' ||
case when data_type like '%CHAR%' then ' string'
when data_type like '%NUMBER%' then ' decimal'
when data_type like '%DATE%' then ' DateTime'
end
||
case when data_type like '%NUMBER%' AND NULLABLE = 'Y' then '?'
when data_type like '%DATE%' AND NULLABLE = 'Y' then '?'
end
|| ' _'|| lower(COLUMN_NAME) ||';'
from all_tab_columns where table_name = 'CAMERADAMAGES';
select '[Column(Name = "'||COLUMN_NAME||'")]' || chr(13) ||
'public ' ||
case when data_type like '%CHAR%' then ' string'
when data_type like '%NUMBER%' then ' decimal'
when data_type like '%DATE%' then ' DateTime'
end
||
case when data_type like '%NUMBER%' AND NULLABLE = 'Y' then '?'
when data_type like '%DATE%' AND NULLABLE = 'Y' then '?'
end
|| ' ' || COLUMN_NAME || chr(13) ||
' {' || chr(13) ||
' get { return ' || '_'|| lower(COLUMN_NAME) ||';}' || chr(13) ||
' set { '|| '_'|| lower(COLUMN_NAME)||' = value;}'|| chr(13) ||
'}'
from all_tab_columns where table_name = 'CAMERADAMAGES';
以上是关于text criar modelo de dados的主要内容,如果未能解决你的问题,请参考以下文章