SQL中ISNULL用法示例
2015-08-05 14:38
274 查看
查询出其中成绩(score)小于等于60的学生信息保存至表变量@tempTable中,当学生成绩为空时,成绩记为0。
declare @tempTable table( stuname nchar(10), stuage int, stuscore float); insert into @tempTable select name,age,ISNULL(score,0) from tb_Student where ISNULL(score,0)<=60 select * from @tempTable
相关文章推荐
- kvm和virtualbox安装Oracle_11gR2_RAC
- PostgreSQL热备份时pg_start_backup() 做了什么?
- oracle 11g 数据库中报:协议适配器错误
- 关于MongoDB最大连接数的查看与修改
- Oracle常用动态视图和字典表
- Oracle 11g常用命令
- CentOS编译安装MongoDB
- sql 身份验证模式
- django 的数据库操作
- 大型数据库应用解决方案
- Mysql 常用命令行大全
- 问题: Oracle Database 10g 未在当前操作系统中经过认证
- perl-redis
- MySQL系统变量
- MySQL系统变量
- oracle 常用系统表 .
- Creating Dynamic View Object at Runtime programmatically - Oracle ADF
- SQL语法以及JSP中的SQL语句
- Redis和Memcache对比及选择
- 数据库概念:码 键 Key & 范式 Normal Form