编程论坛's Archiver

yyeungg 发表于 2006-8-22 21:01

[求助]这个SQL语句有什么问题?

<P>我想把空载特性这个表里的几列复制到空载特性试验相应的列里<BR>语句如下</P>
<P>sql.Format("INSERT INTO 空载特性试验 (编号, U0, I01, I02, I03, I0, P0, P0CU, P'0, U0/UN, U0/UN2) SELECT 编号, U0, I01, I02, I03, I0, P0, P0CU, P'0, U0/UN, U0/UN2 FROM 空载特性 WHERE 编号=%d",row);<BR>m_pRecordset = theApp.m_pConnection-&gt;Execute((_bstr_t)sql,NULL,adCmdText);</P>
<P>运行不了?不知道是哪里错了<BR></P>

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.