关于Query控件的小问题

ntxs ntxs 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Query1 -> Close();
Query1 -> SQL -> Clear();
Query1 -> SQL -> Add("select * from country.db");
Query1 -> SQL -> Add("where populitian >: low and population <: high");
Query1 -> ParamByName("low") -> AsInteger = StrToInt(Edit1 -> Text);
Query1 -> ParamByName("high") -> AsInteger = StrToInt(Edit2 -> Text);
Query1 -> Open();
}

错误:找不到 low 和 high

请问。,怎么解决这个问题呀? 这两个不是表中的属性
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
ntxs
C++ Builder 13,871 成员 102,696 内容