You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zch 31cb429756 refactor(os-generator): 重构代码生成器的数据库查询和操作,改SQL server为MySQL
- 使用 information_schema 替代 sysobjects 等系统表,提高兼容性
- 更新了 sql.vm 文件中的 SQL 语句.1. 删除了 DECLARE @parentId INT; 语句,因为 MySQL 中不需要预先声明变量2. 将 SET @parentId = SCOPE_IDENTITY(); 修改为 SET @parentId = LAST_INSERT_ID(); ,使用 MySQL 兼容的函数获取最后插入的自增 ID。注意:1. 在 MySQL/TiDB 中,用户变量以 @ 开头,不需要像 SQL Server 那样预先声明2. LAST_INSERT_ID() 函数用于获取最后插入的自增 ID,替代 SQL Server 中的 SCOPE_IDENTITY()
2 months ago
..
src/main refactor(os-generator): 重构代码生成器的数据库查询和操作,改SQL server为MySQL 2 months ago
pom.xml first commit 1 year ago