这段代码可以运作但是把所有内容(" timestamp8"," Last"," TradePrice"," TradeFlags")放入filname column如何更改它我只想放置" gel"进入filname(在这种情况下为$ table = gel)
我尝试凝胶'它说Parse错误:语法错误,意外'凝胶'
中的(T_STRING)请建议
$sql ='INSERT INTO pong8_maintable ("filname","timestamp8","Last","TradePrice", "TradeFlags"
)
SELECT
"gel" ,
cast(public.'.$table.'."Timestamp" as timestamp) ,
cast(public.'.$table.'."Last" as numeric) ,
cast(public.'.$table.'."Trade Flags"as varchar)
FROM Public.'.$table;
sc_exec_sql($sql);
答案 0 :(得分:0)
我试着这样做
FOR /L %%A IN (1,1,2) DO (
xcopy /s C:\Users\abc\def\folder3 C:\Users\xyz\folder%%A
)
或
SELECT
(\''.$table.'\') ,
cast(public.'.$table.'."Timestamp" as timestamp) ,
cast(public.'.$table.'."Last" as numeric) ,
cast(public.'.$table.'."Trade Price" as numeric) ,