Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 返回字符串本身。我家里没有MySql来测试它是否可以将列作为参数。您可以尝试将currentWeather作为第二个参数传递,看看会发生什么,但正如我所说的,我认为这不会解决您的问题。 SELECT * FROM locations WHERE curre_Php_Mysql_Sql_Mariadb - Fatal编程技术网

Php 返回字符串本身。我家里没有MySql来测试它是否可以将列作为参数。您可以尝试将currentWeather作为第二个参数传递,看看会发生什么,但正如我所说的,我认为这不会解决您的问题。 SELECT * FROM locations WHERE curre

Php 返回字符串本身。我家里没有MySql来测试它是否可以将列作为参数。您可以尝试将currentWeather作为第二个参数传递,看看会发生什么,但正如我所说的,我认为这不会解决您的问题。 SELECT * FROM locations WHERE curre,php,mysql,sql,mariadb,Php,Mysql,Sql,Mariadb,返回字符串本身。我家里没有MySql来测试它是否可以将列作为参数。您可以尝试将currentWeather作为第二个参数传递,看看会发生什么,但正如我所说的,我认为这不会解决您的问题。 SELECT * FROM locations WHERE currentWeather IN ('rain', 'snow', 'cloudy') ORDER BY name ASC WHERE FIND_IN_SET(currentWeather, "rain,snow,cloudy")

返回字符串本身。我家里没有MySql来测试它是否可以将列作为参数。您可以尝试将currentWeather作为第二个参数传递,看看会发生什么,但正如我所说的,我认为这不会解决您的问题。
SELECT * FROM locations WHERE currentWeather IN ('rain', 'snow', 'cloudy') ORDER BY name ASC
WHERE FIND_IN_SET(currentWeather, "rain,snow,cloudy")