
正文
postgre空值替换0,post不能替换成get
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
pgsql无数据的空怎么赋值为0
1、首先,打开sql查询器,连接上相应的数据库表,例如stu表。点击“查询”按钮,输入:select `name`,IF(score is null, 0, score) from stu。点击“运行”按钮,此时看到score字段为空的数据查出来是0。
2、select NVL(lotcode,0) from Plt_ProductionWorkOrder where lotcode in(select *from v11)数据库本身有很多函数的,你可以去看看。
3、■结构 PL/pgSQL是一种块结构的语言,比较方便的是用pgAdmin III新建Function,填入一些参数就可以了。
postgre空值替换0的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于post不能替换成get、postgre空值替换0的信息别忘了在本站进行查找喔。







