delphi中如何通過按鈕把我輸入的資料插入到數

2022-01-04 20:42:12 字數 690 閱讀 8125

1樓:匿名使用者

控制元件:adoquery11、連資料庫2、輸入語句select * from 資料庫的資料表名3、設定為truedatasource1連控制元件adoquery1edit1 //欄位wordedit2 //欄位passwordbutton1dbgrid //檢視輸入的內容**: adoquery1.

insert;

adoquery1.fields[0].asstring; //id

adoquery1.fields[1].asstring:=edit1.text; //word

adoquery1.fields[2].asstring:=edit2.text; //password

adoquery1.post;

2樓:匿名使用者

先要搞清楚資料庫的寫入方法,實際就是用sql 插入語句就可以了。

3樓:匿名使用者

sql語句 或者 忘了 呵呵

delphi中用 query元件怎樣將資料插入到資料庫中指定位置上

4樓:匿名使用者

在query的sql屬性中賦實現要求的sql語句值,然後用query.execsql呼叫。

請問DELPHI中怎麼通過按鈕執行應用程式

你可以在按鈕的onclick過各中利用windows提供的api函式 winexec 這個函式的原型如下 函式原型 function winexec external kernel32 name winexec function winexec lpcmdline lpcstr ucmdshow u...

如何在Delphi中實現停靠,delphi2007怎麼把懸浮的工具欄弄成停靠的

delphi安裝目錄裡面有demo,自己去找找.delphi2007怎麼把懸浮的工具欄弄成停靠的 選單view desktops default layout delphi中元件的浮動和被停靠的是什麼意思?這是實現拖曳 drag 功能,只有支援浮動的視覺化元件 如item.可以被拖曳,有被停靠屬性的...

vb中怎樣通過命令按鈕結束過程,vb中怎樣通過命令按鈕結束一個過程

按鈕時結束command1下面的過程?不一定能實現,因為command1按下了可能已經掛起,不讓你按command2了。如果非得要做,你可以這樣 外面 dim a as boolean command1 裡寫 if a then exit sub a 0 command2 裡寫 a 1 雙擊按鈕後,...