<%@ page contentType="text/html;charset=MS950" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> CH14 - Mysql_jstl.jsp

將資料存入 Mysql 中 - 使用 JSTL 寫法

INSERT INTO employee(employee_id, last_name, first_name, birth, sex, email) VALUES ( ? , ? , ? , ? , ? , ? ) SELECT * FROM employee 從 employee 取出所有新增的姓名:
新增姓名:${row.last_name} ${row.first_name}