不行的。如果用pb可以这样写:
datetime ld_tmp
string ls_tmp
select DATETIME into :ld_tmp from your_table;
ls_tmp = string(ld_tmp,"yyyymmdd")
这样就可以了。
不知道vc怎么写?