- Rexx 教程
- Rexx - 主頁
- Rexx - 概述
- Rexx - 環境
- Rexx - 安裝
- Rexx - 安裝外掛
- Rexx - 基本語法
- Rexx - 資料型別
- Rexx - 變數
- Rexx - 運算子
- Rexx - 陣列
- Rexx - 迴圈
- Rexx - 決策制定
- Rexx - 數值
- Rexx - 字串
- Rexx - 函式
- Rexx - 堆疊
- Rexx - 檔案 I/O
- Rexx - 檔案函式
- Rexx - 子例程
- Rexx - 內建函式
- Rexx - 系統命令
- Rexx - XML
- Rexx - Regina
- Rexx - 解析
- Rexx - 訊號
- Rexx - 除錯
- Rexx - 錯誤處理
- Rexx - 面向物件
- Rexx - 可移植性
- Rexx - 擴充套件函式
- Rexx - 指令
- Rexx - 實現
- Rexx - Netrexx
- Rexx - Brexx
- Rexx - 資料庫
- 手持裝置 & 內嵌裝置
- Rexx - 效能
- Rexx - 最佳程式設計實踐
- Rexx - 圖形使用者介面
- Rexx - Reginald
- Rexx - Web 程式設計
- Rexx 有用資源
- Rexx - 快速指南
- Rexx - 有用資源
- Rexx - 討論
Rexx - 插入操作
當您想要將您的記錄建立到資料庫表時,這是必需的。
以下示例將在員工表中插入一條記錄。
示例
/* Main program */
Call RxFuncAdd 'SQLLoadFuncs', 'rexxsql', 'SQLLoadFuncs'
Call SQLLoadFuncs
if SQLConnect(c1,'testuser','test123','testdb') == 0 then say 'Connect Succedded'
if SQLCommand(u1,"use testdb") == 0 then say 'Changed database to testdb'
sqlstr = "INSERT INTO employee(first_name,last_name,age,sex,income) values
('Mac','Mohan',20,'M',2000)"
say SQLCommand(c2,sqlstr)
如果您檢視 MySQL testDB 資料庫,您將看到該記錄已插入。
rexx_databases.htm
廣告