i have a some data code like this :
how i can get data only J with where clause ? is it need something like regex ?
i've been try with this query but the output was NULL
SELECT MAX(request_code) as max_request_code FROM `request` WHERE RIGHT('request_code',1) = 'J'
anyone can help me out ?
Thank you
You can have it like this
WHERE request_code LIKE '%J'
You can refer to this link http://www.mysqltutorial.org/mysql-like/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.