codeigniter - 如何在数据库中使用临时表 slug?
问题描述
此查询不起作用
SELECT word_name, word_id from words where REPLACE(slug, '-', ' ') like '%word%' AND 1=1 ORDER BY length(word_name) ASC LIMIT 8
PS 编辑:对不起,我放弃了这个问题。请忽略这个问题。
解决方案
不确定您是否需要所有这些步骤。例如,您可以在一个语句中检查存在、定义和全选
drop table if exists t;
create temporary table if not exists t
(id int)
select id from users;
推荐阅读
- javascript - 如何为具有相同结构的不同 JSON 文件创建一个组件
- mips - 这些术语在 MIPS 中是什么意思?
- android - 导航抽屉和工具栏出现在闪屏中
- javascript - 获得排序数组中连续元素之间最大差异的最佳解决方案是什么
- reactjs - 是否可以将材料表列的顺序保存到数据库以保持其持久性?
- java - 从Java中的逗号分隔的字符串按字段创建枚举列表
- json - 如何在 JMETER 工具中的单个 HTTP 请求中从 CSV 文件发送多个 JSON 数据
- python - 简单最近质心分类器中的 numpy
- c# - 使用语音识别进行数据输入
- node.js - 节点 JS/ 角