--oracle中可以这么使用,但是一般中文都需要使用双引号 case when t.a_guid = '67172571' then t.num else null end 30元奖券
为何不用因为代替呢? case when t.a_guid = '67172571' then t.num else null end 30_Lotteries oracle中单引号和双引号的使用
oracle标识符允许使用中文,但不能以数字开头,只能以下划线、字母、全角中文字符等开头, 当然列的别名也是一种标识符,所以不能以“30“这样的数字开头(除非加上双引号), case when t.a_guid = '67172571' then t.num else null end as 奖券30元 否则只能加双引号,页面上再编码处理
--oracle中可以这么使用,但是一般中文都需要使用双引号
case when t.a_guid = '67172571' then t.num else null end 30元奖券
case when t.a_guid = '67172571' then t.num else null end 30_Lotteries
oracle中单引号和双引号的使用
当然列的别名也是一种标识符,所以不能以“30“这样的数字开头(除非加上双引号),
case when t.a_guid = '67172571' then t.num else null end as 奖券30元
否则只能加双引号,页面上再编码处理