Home  >  Article  >  Database  >  jdbc-mysql数据库的PASSWORD函数在数据库的表中设置密码有什么限制?

jdbc-mysql数据库的PASSWORD函数在数据库的表中设置密码有什么限制?

WBOY
WBOYOriginal
2016-06-06 09:43:192027browse

mysqljdbcjavapassword函数

SELECT ID,Name,PASSWORD(Pass),LoginType,CinemaID,MainAccountType from t_web_account WHERE Pass=PASSWORD( '01996666' ) and Name= 'quanguohengdian' ;同一条sql语句在mysql数据中执行有数据,在java代码中执行无数据。但我在数据库中将密码改为11996666后,java代码执行sql有记录,一切正常,求解!

初步认为PASSWORD函数中密码不能以0开头,很多密码我试了都可以。

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