单项选择题
一段构造SQL语句的程序代码如下:
char *dcid, *acid, *ecid;
dcid = “001”; ecid= “002”; acid= “003”;
strcpy(sqltext, “SELECT * from Student where s# =”);
strcpy(sqltext,“: dcid”);
… …
exec sql whenever not found goto no_such_s#;
exec sql prepare ecid from :sqltext;
exec sql execute ecid using :acid;
exec sql commit work; continue;
no_such_s#: printf("No such student in table Student");
continue;
问:当该段程序执行“exec sql execute ecid using :acid;”语句时,其执行的查询是_______。
A.检索001号同学的信息
B.检索003号同学的信息
C.其他都不是
D.检索002号同学的信息