//測試** add by on [2009-7-22]+
//for:
cstring stablename = "fine_mzbase";
cstring sfieldname = "drill_id";
safearray far* psa = null;
safearraybound rgsabound;
_variant_t var;
_variant_t array;
rgsabound.llbound = 0;
rgsabound.celements = 4;
psa = safearraycreate(vt_variant, 1, &rgsabound);
var.vt = vt_empty;
long ix;
ix = 0;
safearrayputelement(psa, &ix, &var);
ix= 1;
safearrayputelement(psa, &ix, &var);
ix = 2;
var.vt = vt_bstr;
var.bstrval =stablename.allocsysstring();//表名
safearrayputelement(psa, &ix, &var);
var.vt = vt_bstr;
ix = 3;
var.bstrval =sfieldname.allocsysstring();//欄位名
safearrayputelement(psa, &ix, &var);
array.vt = vt_array|vt_variant;
array.parray = psa;
cadodatabase *pdatabase = g_pconnectora_with_oraoledb;
cadorecordset prstschema /*= pdatabase->open()*/;
prstschema.m_precordset = pdatabase->m_pconnection->openschema(adschemacolumns,&array);
//pzksapmzset->openschema(adschemacolumns,&array);
_bstr_t column_name = prstschema.m_precordset->fields->getitem("column_name")->value;
_bstr_t column_discription= prstschema.m_precordset->fields->getitem("description")->value;
//pzksapmzset->openschema(adschemacolumns);
//int nfieldcount = pzksapmzset->getfieldcount();
//int nrecordcont = pzksapmzset->getrecordcount();
//cadofieldinfo fileinfo;
//cstring svall;
//_variant_t vtvalue;
//for (int ii = 0 ; ii getfieldinfo("description"/*ii*/, &fileinfo);
// nrecordcont = pzksapmzset->getrecordcount();
// pzksapmzset->movefirst();
// while (!pzksapmzset->iseof())
//
//}
access中的字段型別
sql語句修改access中的字段型別 alter table tb alter column aa byte 數字 位元組 alter table tb alter column aa long 數字 長整型 alter table tb alter column aa short 數字 整型 a...
提取表中的各個字段
作用 提取表中的各個字段 declare tb name varchar 200 col varchar 500 set tb name tb test2 要查詢的表名 select col isnull col name from syscolumns where id object id tb ...
inittab檔案中的字段說明
etc inittab檔案中每個登記項的結構都是一樣的,共分為以冒號 分隔的4個字段。具體如下 identifier run level action proces s其中,各欄位以及與其相關的說明如下 identifier 登記項識別符號,最多為4個字元。用於惟一地標識 etc inittab檔案...