sc_lookup(Dataset, "SELECT tablename FROM pg_catalog.pg_tables
where schemaname = 'public'and tablename not like 'pong8%' order by tablename") ;
{TabName} = {Dataset[33][0]};
echo "{TabName} " ;
$sql ='INSERT INTO pong8_maintable ("timestamp8","Last","TradePrice", "TradeVolume" , "BestBid")
SELECT
cast(public.'.{TabName}.'"Timestamp" as timestamp) ,
cast(public.'.{TabName}.'"Last" as numeric) ,
cast(public.'.{TabName}.'"Trade Price" as numeric) ,
cast(public.'.{TabName}.'"Trade Volume" as numeric),
cast(public.'.{TabName}.'"Best Bid" as numeric)
FROM Public.'.{TabName}.' ;
cast(public.'.{TabName}.'"Timestamp" as timestamp)
withcast(public.'.{$TabName}.'"Timestamp" as timestamp)
ASKER
sc_lookup(Dataset, "SELECT tablename FROM pg_catalog.pg_tables
where schemaname = 'public'and tablename not like 'pong8%' order by tablename") ;
{TabName} = {Dataset[33][0]};
echo "{TabName} " ;
$sql ='INSERT INTO pong8_maintable ("timestamp8","Last","TradePrice", "TradeVolume" , "BestBid")
SELECT
cast(public.gel."Timestamp" as timestamp) ,
cast(public.gel."Last" as numeric) ,
cast(public.gel."Trade Price" as numeric) ,
cast(public.gel."Trade Volume" as numeric),
cast(public.gel."Best Bid" as numeric)
FROM Public.'.{TabName};
sc_exec_sql($sql);
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
ASKER
Open in new window