摘要: 必如有一个表pactinfo结构如下: ID pactname 1 正常 2 中国 3 做饭 4 加发 我现在在想要查询pactname的第一个字母是 Z 的,就可以把“正常”“中国”“做饭”查询出来,sql怎么写?---测试数据---if object_id('[pactinfo]') is not null drop table [pactinfo]gocreate table [pactinfo]([ID] int,[pactname] varchar(4))insert [pactinfo]select 1,'正常' union alls... 阅读全文
posted @ 2013-07-31 17:27 天殇月痕 阅读(438) 评论(0) 推荐(0) 编辑