1146 | Error 'Table '91hospital.zx_anli' doesn't exist' on query. Default database: '91hospital'. Query: '-- ----------------------------
时间: 2023-08-15 18:11:52 浏览: 64
错误代码1146表示查询的表在数据库中不存在。根据错误消息,表'zx_anli'在数据库'91hospital'中不存在。
请确保以下几点:
1. 数据库和表名正确:检查数据库名和表名是否正确拼写,并且与查询中使用的一致。注意MySQL数据库对大小写敏感。
2. 使用正确的数据库:在执行查询之前,确保已选择正确的默认数据库。可以使用以下命令切换到'91hospital'数据库:
```sql
USE 91hospital;
```
3. 检查表是否存在:使用以下命令列出数据库中所有的表,检查是否存在名为'zx_anli'的表:
```sql
SHOW TABLES;
```
如果表确实不存在,请检查是否创建了正确的表,并且确保您正在操作正确的数据库。如果问题仍然存在,请提供更多详细信息,例如执行的完整查询以及相关的错误消息,以便我能够更好地帮助您解决问题。
相关问题
import pandas data=pandas.read_csv('D:/py_anli2/apriori.csv',encoding='GBK') # print(data) transactions= data['items'].values from apyori import apriori results = list( apriori( transactions, min_support=0.001, min_confidence=0.001, min_lift=1.001 ) ) supports=[] confidences=[] lifts=[] bases=[] adds=[] for r in results: size = len(r.ordered_statistics) for j in range(size): supports.append(r.support) confidences.append( r.ordered_statistics[j].confidence ) lifts.append(r.ordered_statistics[j].lift) bases.append( list(r.ordered_statistics[j].items_base) ) adds.append( list(r.ordered_statistics[j].items_add) ) result = pandas.DataFrame({ '基于':bases, '推荐':adds, '支持度':supports, '置信度':confidences, '提升度':lifts, }) print(result)
这段代码是使用Apriori算法进行关联规则挖掘分析。它使用pandas库读取一个CSV文件,然后从文件中提取出需要进行关联规则挖掘的事务数据。接下来,它使用apyori库中的apriori函数来执行关联规则挖掘,并将结果存储在一个列表中。然后,通过遍历结果列表,将每个关联规则的支持度、置信度、提升度、基于项和推荐项存储在各自的列表中。最后,将这些列表整理成一个pandas DataFrame,并打印输出结果。
需要注意的是,这段代码中的文件路径可能需要根据实际情况进行修改。另外,关联规则挖掘的参数(如最小支持度、最小置信度、最小提升度)也可以根据具体需求进行调整。
process has died [pid 15349, exit code 1, cmd /home/kfk/anli02_ws/src/arbotix_ros/arbotix_python/bin/arbotix_driver __name:=driver __log:=/home/kfk/.ros/log/f5b00552-20a1-11ee-931d-5dd2d08c713d/driver-4.log]. log file: /home/kfk/.ros/log/f5b00552-20a1-11ee-931d-5dd2d08c713d/driver-4*.log
这个错误信息意味着进程(进程ID为15349)因为退出码1而终止了。终止的命令是`/home/kfk/anli02_ws/src/arbotix_ros/arbotix_python/bin/arbotix_driver __name:=driver __log:=/home/kfk/.ros/log/f5b00552-20a1-11ee-931d-5dd2d08c713d/driver-4.log`。你可以查看日志文件`/home/kfk/.ros/log/f5b00552-20a1-11ee-931d-5dd2d08c713d/driver-4*.log`以获取更多详细信息。请问有什么其他问题我可以帮助您解答的吗?
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>婚庆</title> </head> <body style=" background:#fff;">
主页 服务 资讯 案例 登陆 注册
注册 <form class="form" action="denglu.html"> 账 号: <input type="text" class="phone" placeholder="请输入账号"> 密 码: <input type="password" class="phone" placeholder="请输入密码"> 确认密码: <input type="password" class="phone" placeholder="请输入密码">
<button> 注册</button>
</form>
</body> </html>
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)