I need to get the rows which has a specific column value .
is this is correct for it ??
SELECT *
FROM
tourDB
WHERE
tour_type = insta_deals
in this i want to get all the rows having insta_deals in the column of 'tour_type'.
You are missing " "
SELECT *
FROM
tourDB
WHERE
tour_type = "insta_deals"
^^^ ^^^
SELECT * FROM tourDB WHERE tour_type就像“ insta_deals”
Without using '
the value insta_deals
is understood by mysql as a column name. So your need to use '
to specify to mysql that this value is actualy a string.
SELECT *
FROM
tourDB
WHERE
tour_type = 'insta_deals'
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.