double sqlite_db::queryScalarDouble(const wstring& s) {double scalar=0;queryScalar(s,scalar);return scalar;}
SAField & CDbCommand::queryScalar() throw (CDbException) { return queryScalar(CCommandParameterMap()); }
unsigned __int64 sqlite_db::queryScalarUInt64(const wstring& s) {unsigned __int64 scalar=0;queryScalar(s,scalar);return scalar;}
float sqlite_db::queryScalarFloat(const wstring& s) {float scalar=0;queryScalar(s,scalar);return scalar;}
long sqlite_db::queryScalarLong(const wstring& s) {long scalar=0;queryScalar(s,scalar);return scalar;}
unsigned long sqlite_db::queryScalarULong(const wstring& s) {unsigned long scalar=0;queryScalar(s,scalar);return scalar;}
unsigned int sqlite_db::queryScalarUInt(const wstring& s) {unsigned int scalar=0;queryScalar(s,scalar);return scalar;}
int sqlite_db::queryScalarInt(const wstring& s) {int scalar=0;queryScalar(s,scalar);return scalar;}
wstring sqlite_db::queryScalar(const wstring& s) {wstring scalar;queryScalar(s,scalar);return scalar;}
bool sqlite_db::queryScalar(const wstring& s,double& scalar) {wstring r;if(!queryScalar(s,r)) return false; scalar=_wtof(r.c_str());return true;}
bool sqlite_db::queryScalar(const wstring& s,unsigned __int64& scalar) {wstring r;if(!queryScalar(s,r)) return false; scalar=_wtoi64(r.c_str());return true;}