如何从sql表中查找值的一部分 [英] How can i find a part of a value from sql table

查看:71
本文介绍了如何从sql表中查找值的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表中包含的字段包含带有特殊字符而没有特殊字符的值,
我希望查询仅检索包含特殊字符的值.
例如:我的字段XXXX上包含值AAABBB和AA @ ** BB,因此在这里我希望查询仅获得AA @ ** BB
我该怎么写?

My table contains fields which contains the values with special characters and without special characters,
i want a query to retrive only the values which contains special characters.
Eg: on of my field XXXX contains values AAABBB and AA@**BB so here i want a query to get only AA@**BB
how can i write? which is the proper operator i have to use?

推荐答案

^ ]


您应使用 ^ ]运算符从数据库中获取指定的数据.
此处阅读更多有关LIKE的信息. [
You should use LIKE[^] operator to get the specified data from database.
Read more about LIKE here[^].

--Amit


这篇关于如何从sql表中查找值的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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