Home  >  Article  >  Database  >  教你轻松应对JSP连接MySQL数据库问题_MySQL

教你轻松应对JSP连接MySQL数据库问题_MySQL

WBOY
WBOYOriginal
2016-06-01 14:03:10791browse

当您面临JSP连接MySQL数据库问题,你首先需要在MySQL数据库里创建一username表,表里面创建两个字符型的字段,字段名分别为:uid,pwd,然后插入几条测试数据。

 

以下用两种方式来实现JSP连接MySql数据库

 

第一种方式,用JSP实现:

 

<ccid_code></ccid_code>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn