如何在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 爱生日祝福语简短独特