惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
P
Proofpoint News Feed
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
A
About on SuperTechFans
T
Tenable Blog
M
MIT News - Artificial intelligence
IT之家
IT之家
I
Intezer
D
DataBreaches.Net
爱范儿
爱范儿
T
Threatpost
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
AWS News Blog
AWS News Blog
博客园 - 聂微东
C
Check Point Blog
S
Securelist
有赞技术团队
有赞技术团队
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
L
Lohrmann on Cybersecurity
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog

博客园 - .net

软件项目获取用户需求的沟通技巧(摘自IT168技术频道) 软件项目进度控制要处理好四个问题(摘自IT168技术频道) 软件外包项目实施过程中的关键因素(摘自IT168技术频道) Struts学习心得之Struts流程篇(3) -示例 续 转载 Struts学习心得之Struts流程篇(3) -示例 转载 Struts学习心得之Struts流程篇(2) 转载 Struts学习心得之Struts流程篇(1)转载 初学Java Applet程序设计基础 将一个数据库添加到服务器中 datagrid中使用dropdownlist编辑模版时遇到问题 开发个人财务管理系统(一)建数据库 SQL查询语句使用方法参考二 SQL查询语句使用方法参考一 用RichTextBox控件来做一个文本编辑器 微软的一项Agent技术(动画小精灵) .NET中如何获得IP地址和主机名 response.bufferoutput cookie的使用 测试cookie关键字是否存在
开发中的临时内容
.net · 2005-04-27 · via 博客园 - .net

开发中的临时内容

一.使用case函数返回多个可能结果表达式之一:
'===========================
select username,
           password,
           email ,
           authority=
           CASE authority
          WHEN 1 THEN ' 系统管理员'
              ELSE '普通用户'
          END  /* 当authority字段的值=1 时显示系统管理员,否则显示 普通用户 */
from usertable
'============================
数据库中的usertable表中的数据是:
             lvxh lvxh lvxuehui@sohu.com  1
             lvxj lvxj xuejiaolv@xingxing.com 0

在查询分析器中运行后:lvxh lvxh lvxuehui@sohu.com  系统管理员
             lvxj lvxj xuejiaolv@xingxing.com 普通用户
上面的select语句是从表中查询所有记录,并且字段authority对应的数据不是数据表中的数据,使经过了转换后再显示出来的。 
             

二.在数据表中设置某个字段时自增的:
设计表结构时将该字段的标识属性选择“是”后即可,之后在插入数据时无需对该字段传值,数据库会自动处理。

posted on 2005-04-27 17:22  .net  阅读(293)  评论()    收藏  举报