如何在MySQL表中搜索^字符?
要搜索^字符,请按照以下语法使用LIKE运算符-
select table_schema,table_name,column_name from information_schema.columns where column_name like '%^%';
让我们首先创建一个表-
mysql> create table DemoTable1826
(
`^` varchar(20),
Name varchar(20),
`^Age` int
);这是在MySQL表中搜索^字符的查询
mysql> select table_schema,table_name,column_name
from information_schema.columns
where column_name like '%^%';这将产生以下输出-
+--------------+---------------+-------------+ | TABLE_SCHEMA | TABLE_NAME | COLUMN_NAME | +--------------+---------------+-------------+ | web | demotable1826 | ^ | | web | demotable1826 | ^Age | +--------------+---------------+-------------+ 2 rows in set (0.00 sec)
热门推荐
10 祝孙辈生日祝福语简短
11 恋人跨年祝福语大全简短
12 考大学敬酒简短祝福语
13 开工投产大吉祝福语 简短
14 偶然结婚祝福语朋友简短
15 感谢学长学姐祝福语简短
16 戏精的祝福语简短
17 我要结婚祝福语简短
18 婚前女儿生日祝福语简短