简体   繁体   中英

Select specific row from mysql table based on a column value

How do I select an specific row from mysql table?

This is my table: 在此处输入图片说明

I want to select on a specific Token value, so what I tried is this:

SELECT * FROM Oefeningen WHERE Token = ('a6rqc')

But that returns me nothing, could somebody help me out on this?

You may have a trailing or leading space. Ie the value might actually be token=' a6rqc' or it might be token='a6rqc ' . If you use % , you will be able to wildcard match, ie token like '%a6rqc%'

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM