给你一张表
employeeInfo
(
id int primary key identity(1,1) not null,
name varchar(20) not null,//名字
years datetime not null,//年份
age int not null //年龄
)
问题是:按照比如 年份 名字 年龄
2011 张三 23这样的显示格式显示,sql语句怎么写
employeeInfo
(
id int primary key identity(1,1) not null,
name varchar(20) not null,//名字
years datetime not null,//年份
age int not null //年龄
)
问题是:按照比如 年份 名字 年龄
2011 张三 23这样的显示格式显示,sql语句怎么写
解决方案 »
- java.net.SocketException: Connection reset
- javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- 程序员都需要书写那些文档?
- 请帮我解释一下以下对struts和tomcat的问题。
- 关于logic:equal的问题
- 要做个web系统,不知道选什么server,那位高人给点意见
- tomcat5+axis部署webservices时出错
- Struts怎么入门呀!!!!!帮帮我呀!!有什么好文章好书,好视频,能不能推荐我点!66相送!人人有分
- 谁帮忙解释一下英文意思。有关HttpServlet的doGet方法
- httpclient偶尔出现乱码,版本3.0.1
- 一道java转码的问题
- 求整数和两位小数的正则表达式(浮点型)
years datetime not null,
age int(5) not null );insert into employeeInfo values(2011,"张三",23);
这个是从employeeInfo里面查出所有的数据,如果需要判断的话可以加where
例如:我要找到名字叫“张三”的数据,那么就是select years,name,age from employeeInf where name = '张三'
这么就可以了,如果出不来就把""换成''试试
select name,years,age,from employeeInfo
要求是得显示文字呢