如何用sql server查看姓 张 陈 黄 的基本信息 按姓名的降序排列查询结果

首页知识区更新时间:2024-02-12 17:40:05
如何用sql server查看姓 张 陈 黄 的基本信息 按姓名的降序排列查询结果

select * from 表名 where left(stuname,1) in ('张','陈','黄') order by stuname desc或者select * from 表名 where stuname like '张' or stuname like '陈' or stuname like '黄' order by stuname desc

展开阅读全文
推荐内容
热门内容
推荐
喜欢

© 2007-2023 ,All Rights Reserved.