大家好,我是堆栈溢出的新手 .. 我只是有一个关于此的问题.. 我想在我的数据库表中选择两列.. 一个用于 WHERE,另一个用于我搜索的内容
Welcome bro, you can not do it like that, when you select two columns then it will back in your query , on (where) command or sql you can search by any one of the columns , but you can select the columns that you want to see in the result .
this is example for sql query :
SELECT real_easte.category, real_easte.yard FROM `real_easte` WHERE number_of_floor = 2
where is select this two columns ( real_easte.category, real_easte.yard ) and search by (number_of_floor)
i hope that clear idea for you
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.