用于获取行详细信息的sql查询,如果前四个字符与给定数据匹配 [英] sql query for getting the details of the row, if the first four characters matches the given data

查看:174
本文介绍了用于获取行详细信息的sql查询,如果前四个字符与给定数据匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用于获取行的详细信息的SQL查询,如果前四个字符符合条件

解决方案

尝试 - 希望自我解释



 选择名称
来自 tblEmployee
其中 substring(name, 1 4 )= ' ABCD'


select * from< tblname>其中名称如ABCD%



请参阅以下链接,它可能对您有所帮助



http:// www。 1keydata.com/sql/sqllike.html

sql query for getting the details of the row if the first four characters matches the criteria

解决方案

try - hope self explanatory

select name
from tblEmployee
where substring(name,1,4)='ABCD'


select * from <tblname> where name like ABCD%

refer below link it might help you

http://www.1keydata.com/sql/sqllike.html


这篇关于用于获取行详细信息的sql查询,如果前四个字符与给定数据匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆