Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
运行以下命令在数据库中创建一个临时表来观察更改。
Run the following to create a temporary table in the database to observe the changes.
Code Block |
---|
CREATE TABLE IF NOT EXISTS `app_fd_demo` ( `id` varchar(255) NOT NULL, `dateCreated` datetime DEFAULT NULL, `dateModified` datetime DEFAULT NULL, `c_message` longtext, PRIMARY KEY (`id`) ) |
In your SQL client, create a sample procedure called as jogetaddrecord by executing the statements below.
在您的SQL客户端中,通过执行以下语句创建一个名为jogetaddrecord 的示例过程 。
在这个过程中,每次调用时都会在app_fd_demo中插入新的记录 。
In this procedure, it will insert a new record into app_fd_demo every time it is called.
Code Block |
---|
DELIMITER // CREATE PROCEDURE jogetaddrecord(IN inputParam VARCHAR(255)) BEGIN INSERT INTO app_fd_demo VALUES (now(), now(), now(), inputParam); END // DELIMITER ; |
...
添加下面的代码来调用存储的过程。
...
Code Block |
---|
call jogetaddrecord("hello"); |
...
Code Block |
---|
mysql> select * from app_fd_demo; +---------------------+---------------------+---------------------+-----------+ | id | dateCreated | dateModified | c_message | +---------------------+---------------------+---------------------+-----------+ | 2016-06-29 11:57:19 | 2016-06-29 11:57:19 | 2016-06-29 11:57:19 | hello | +---------------------+---------------------+---------------------+-----------+ 1 row in set (0.00 sec) |
...