如何在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 好听的元旦简短祝福语