SELECT ‘cmd.Parameters.Add("‘||LOWER(t.COLUMN_NAME)||‘",‘|| case when t.DATA_TYPE=‘NVARCHAR2‘ then ‘OracleType.NVarChar‘ WHEN t.DATA_TYPE=‘NUMBER‘ THEN ‘OracleType.Number‘ WHEN t.DATA_TYPE=‘CHAR‘ THEN ‘OracleType.Char‘ WHEN t.DATA_TYPE=‘DATE‘ THEN ‘OracleType.DateTime‘ ELSE ‘OracleType.UNKNOWN‘ END ||‘).Value = ‘ FROM USER_TAB_COLUMNS t where t.TABLE_NAME=UPPER(‘表名‘)
时间: 2024-10-12 22:21:06