问题描述
Hello guys
我有一个数据库(TestDB)和一个表(TestTable)。现在,我需要表格的第一个条目,我想将它们保存为变量(sEntryOne,sEntryTwo)。
如何获取这些条目并将它们保存到变量?我知道如何用SQL选择我想要的东西(选择...来自... ... ... ... ...)但是有人可以帮助我取得成功吗?
我的上一个问题:如何用TestTable的安全条目填写另一个表(OtherTable)?
问候
Epanjohura。
Hello guys
I got a database ("TestDB") and a table ("TestTable"). Now, I need the first entries of the table and I want to safe them into variables (sEntryOne, sEntryTwo).
How do I get those entries and safe them into variables? I know how to select what I want with SQL ("Select ... From ... WHERE ... = ...") but can anyone help me to get ahead?
And my last question: how can I fill another table ("OtherTable") with the safed entries of "TestTable"?
Greetings
Epanjohura.
推荐答案
这篇关于使用SQL和C ++从表(数据库)中获取条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!