sql查询 - MS-SQL Server / 基础类
一个表里面有字段 id,sum 要求查询的时候 添加一列s varchar型,如果sum>60,s就为通过 反之则不通过
SQL code:
select id,sum,s=case when sum>60 then '通过' else '不通过' end from [Table]
SQL code:
select id,[sum],s=case when sum>60 then '通过' else '不通过' end from tb
SQL code:
select id,[sum],case when sum>60 then '通过' else '不通过' end as s from tb
SQL code:
select id,[sum],s=(case when sum>60 then '通过' else '不通过'end) from tb
upup
你真幸福,有人回答。
楼上都是高人
这儿能回复问题 的都是高手
SQL codeselect id,[sum],case when sum>60 then '通过' else '不通过' end as s from tb
相关问答:
执行的顺序:
1)文件浏览框(选择文件使用)
选择好文件后
点击一个导入按钮的时候 ,把上面上传框里的csv文件以一个ID为文件名,上传到**/**文件夹下
2)读取这个文件夹下的csv的文件,转换成sql
3 ......
从数据库中查询一张表的数据
select 部门,姓名 from tb
如何才能生成下面的xml格式
XML code:
<folder state="unchecked" label="全部">
<folder state="unchecked&qu ......
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
sql的软件在哪里可以下啊!在网上找了蛮多都用不了啊
随便搞一D版吧,
迅雷第一个就可以用
2000,2005都这样
http://119.147.41.16/down?cid=0698C2D64D7D637D90A6D2482298E6717D4F15CD&t=2&fmt=-1 ......