摘要:
oracle得到的两个字段进行相加,要求都是number类型的,如果两个是字符串会自动转成number类型(前提是能够转) select a+b from (select '1' a,'2' b from z_user) 对的,输出3 select a+b from (select '1a' a,' 阅读全文
摘要:
select count(*),c_xy_bj a from z_user group by c_xy_bj 这个group by后面不能使用c_xy_bj 字段的别名a,只有外面再嵌套select查询才能使用字段别名aselect c_xy_bj a from z_user where c_xy_ 阅读全文