“使用PreparedStatement实现通用的增删改操作”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第7行: | 第7行: | ||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; | ||
+ | </syntaxhighlight><syntaxhighlight lang="sql"> | ||
+ | INSERT INTO `jdbc_test`.`order` | ||
+ | (`order_name`, | ||
+ | `order_date`) | ||
+ | VALUES | ||
+ | ( | ||
+ | 'AA', | ||
+ | '2010-03-04'); | ||
</syntaxhighlight> | </syntaxhighlight> |
2022年12月16日 (五) 14:03的版本
https://www.bilibili.com/video/BV1eJ411c7rf?p=16
CREATE TABLE `order` (
`order_id` int(11) NOT NULL AUTO_INCREMENT,
`order_name` varchar(45) DEFAULT NULL,
`order_date` date DEFAULT NULL,
PRIMARY KEY (`order_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
INSERT INTO `jdbc_test`.`order`
(`order_name`,
`order_date`)
VALUES
(
'AA',
'2010-03-04');