CREATE TEMPORARY TABLE mmm(material_id varchar(255));
CREATE TEMPORARY TABLE tem(id varchar(255),time datetime,weight float,price float,total_price float,type int,stock_total_m float,stock_total_w float,create_date varchar(255))
insert into mmm values
select id from t_comm_material where id in('8adee284554cb68301556c8bec232743',
CREATE TEMPORARY TABLE tem(id varchar(255),time datetime,weight float,price float,total_price float,type int,stock_total_m float,stock_total_w float,create_date varchar(255))
insert into mmm values
select id from t_comm_material where id in('8adee284554cb68301556c8bec232743',
解决方案 »
- 连接查询的问题
- 大家看一下~关于where 字段in(v1,v2,v3,v4...) 的执行顺问题
- 修改用户密码后登陆不了了。
- 使用sqlloader导入数据文件时,如何将1条数据分割存到数据库对应的2个字段中。请高手指教
- Find the smallest collection of indexes that speed up the processing of all SELECT statements
- 这样的SQL语句怎么写?
- 返回结果集纪录数,是否有向rownum之类的变量表示
- 急!!!
- 在SQL SERVER中能执行的SQL语句为什么在ORACLE中不能执行?在线等待,马上给分
- 我写了一个存储过程效率很低,请问有什么办法能提高效率
- udl 里面如何添加oracle提供程序
- 收集统计信息不用临时表空间问题
select id from t_comm_material where id把 values 去掉。 用select 返回结果集时,前面的 insert 语句,不用 values
while exist(select * from A)
beginend 在mysql中怎么用呢
你要在存储过程中实现,还是匿名块中实现?
while exists(select * from mmm)