数据库的读取

来源:互联网 发布:淘宝论坛怎么引流 编辑:程序博客网 时间:2024/06/15 15:46


%数据库的读取是依靠整句话的解析,分析第二行得到 为什么使用sprintf 而不是其他的fprintf, 为什么第一个是%s 第二个是 %d


Index=['tradingDay,instType,instrumentCode,productCode,marketValue'];
sql=sprintf('select %s from positions_history where left(productCode,5)=%d order by tradingDay',Index,FundCodeValue);
cursorA=exec(conn,sql);
cursorA=fetch(cursorA);

0 0
原创粉丝点击