mysql - 数据库选择mysql有问题
问题描述
我有这张桌子table chats
和tbl_suggested
。在桌上聊天我有
id questions answer date
1 What is life 2020-02-08
2 what is PC personal computer 2020-02-08
3 What is life uk good 2020-02-08
4 where is the cr there 2020-02-08
在tbl_suggest
我有这个
id chats_id questions
1 1 What is life in spain
2 1 what is liefe in uk
3 1 What is life in paris
我查询这段代码
SELECT chats.id,chats.question,chats.answer,tbl_suggest.questions,chats.date
from chats LEFT JOIN tbl_suggest on chats.id= tbl_suggest.chats_id O
RDER by chats.date ASC
结果是,然后我想删除第二排和第三排的两个生活问题
chat.id chat.questions chat.answer tbl_suggest.question chats.date
1 what is life what is life in spain 2020-02-08
1 what is life what is liefe in uk 2020-02-08
1 what is life what is life in paris 2020-02-08
2 what is PC personal computer 2020-02-08
3 What is life uk good 2020-02-08
4 where is the cr there 2020-02-08
我想要的是删除这样的生命多余的东西
chat.questions chat.answer tbl_suggest.question chats.date
what is life what is life in spain 2020-02-08
what is liefe in uk 2020-02-08
what is life in paris 2020-02-08
what is PC personal computer 2020-02-08
What is life uk good 2020-02-08
where is the cr there 2020-02-08
在我的对话框中正确显示
解决方案
推荐阅读
- java - 显示为混合分数输入的值时出错
- swift - 根据函数的输出分配变量字符串值
- cmake - 在使用 CMake 安装期间创建指向不同文件夹中库的符号链接
- jsf - Apache Shiro 使用“unauthorizedUrl”
- json - 如何查找是否在 Liquid for Shopify 的字符串中找到单词?
- .net - 无法将 dotnet-sdk 升级到 5.0.200
- angular - Angular:检测父组件数据变化
- azure - 应用服务维护期间 InProc 会话会发生什么情况?
- redux - 取消订阅后触发 Redux 订阅
- git - 如何忽略 .gitignore 文件中的目录?