I want to know how I can take value
associated to company_working_plan
(name). I'm using MySqlCommand
but I don't know if is possible get the specific column value without iterate on all rows.
NAME | VALUE
COMPANY_WORKING_PLAN XX
您可以像这样简单地做到这一点:
select value from tablename where name = 'company_working_plan'
try this:
SELECT name, value
FROM Tablename
WHERE ID = '13'
that is for the row you highlighted in your image if you want every row and only the value in the column as well as the company name try this:
SELECT name, value
FROM tablename
You edited the question after I posted this and it is still a bit confusing but I think you are looking for:
SELECT name, value
FROM tablename
WHERE value = 'company_working_plan'
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.