gpt4 book ai didi

mysql - "Table doesn' t存在”问题

转载 作者:行者123 更新时间:2023-11-30 23:22:51 29 4
gpt4 key购买 nike

我一直在尝试为我的网站安装一个 PHP 脚本,设置所有内容,通过脚本附带的 phpMyAdmin 导入 SQL 文件,但我面对的是一个空白页面,错误如下所示:

File /home/user/public_html/user/include/functions_common.php

Line 511

Sql select a.* ,a.ratingm as votes , format(ifnull(((a.ratingp*100)/ ( a.ratingm*5))/10,0),1) as rating ,format(ifnull(((a.ratingp*100)/ ( ratingm*5))/20,0),1) as ratings from movies a where featured=1 order by id desc limit 9

Error Table 'user.movies' doesn't exist

奇怪的是脚本没有在 SQL 导入文件中附带这个表,但是有没有办法解决这个问题?有没有办法以某种方式创建表以使其正常工作?我卡住了。谢谢。

最佳答案

您可以使用创建一个虚拟表,

CREATE TABLE MOVIES
(`ID` int, `RATINGM` int, `RATINGP` int, `FEATURED` int, `VIEWS` int);

关于mysql - "Table doesn' t存在”问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14784467/

29 4 0