窗口程序集名 | 保 留 | 保 留 | 备 注 |
程序集1 | | | |
变量名 | 类 型 | 数组 | 备 注 |
Mysql | Mysql类 | |
_临时子程序 () 返回 (0
) 变量名 | 类 型 | 静态 | 数组 | 备 注 |
rows | Mysql记录集 | | |
自增长ID | 长整数型 | | |
影响行数 | 长整数型 | | |
计次 | 整数型 | | |
Mysql.
Connect (“127.0.0.1”,
“root”,
“root”,
“test”) 自增长ID = Mysql.
Table (“user”).
Data (“name='王强',sex = 1,age = 20”).
Insert ()调试输出 (自增长ID
) rows = Mysql.
Table (“article”).
Where (“article_id > 2”).
Order (“article_id”,
#DESC ).
Select ()
计次循环首 (rows.
记录集数 (), 计次
)
调试输出 (rows.
取字段值 (“title”, 计次
))
计次循环尾 () rows = Mysql.
Table (“article a”).
Field (“a.*,b.name”).
Left (“user b”,
“a.user_id = b.user_id”).
Select ()调试输出 (rows.
取数据文本 ())
rows = Mysql.
Table (“user”).
Where (“user_id > 1”).
Where (“sex = 1”).
WhereOr (“age = 15”).
Select ()调试输出 (rows.
取数据文本 ())
rows = Mysql.
Table (“user”).
Where (“user_id > 1”).
Find ()调试输出 (rows.
取字段值 (“name”))
影响行数 = Mysql.
Table (“user”).
Data (“age = 23”).
Where (“user_id = 2”).
Update ()调试输出 (影响行数
) 影响行数 = Mysql.
Table (“user”).
Where (“user_id = 3”).
Delete ()调试输出 (影响行数
)