How does Mysql query the statement that starts with what character?

Sentence method of which character mysql query starts with: 1. Use wildcard query, the code is [SELECT * FROM `article` where title like 'positive%';]; 2. Use left function query, the code is [where left(title,1)]. What character does mysql query start with: 1: Use wildcards: SELECT * FROM `article` where title like ‘positive%’; 2: Use the left function: SELECT * FROM `article ` where left(title,1)='positive'; 3: Use the string interception function: SELECT * FROM `article` where substring(title,1,1)='正'; More related free learning recommendations:mysql tutorial(Video) The above is the detailed content of how Mysql queries the statement starting with what character. For more, please pay attention to other related articles on 1024programmer.com!

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索