详细内容
sql中的case when 转换为access中的等价语句
发布日期:2010-05-12     点击:2916     字体:[ ]

sql: case when  转换为access中的等价语句

 

1. 这是SQL Server中的SQL语句: 

select status=case when status='0' then '合格' else '不合格' end from tablename;

 

2. 这是Access中的SQL语句:

select IIF(status='0','合格','不合格') as status from tablename; 

用户评论
昵称 
内容  *
验证码   
   
相关文章 更多...  
Copyright © 2010 zdbase.com All Rights Reserved. 苏ICP备15039389号 可人软件设计