如何在数据库中使用临时表Slug?

时间:2018-09-19 08:08:03

标签: codeigniter

此查询不起作用

从单词REPLACE(slug,'-','')像'%word%'和1 = 1 ORDER BY的单词中选择word_name和word_id  长度(word_name)ASC LIMIT 8

P.S编辑:对不起,我放弃了这个问题。请忽略此问题。

1 个答案:

答案 0 :(得分:1)

Not sure you need all those steps. You can check for existance, define and select all in one statement for example

drop table if exists t;
create temporary table if not exists t 
(id int)
select id from users;