php连接mysql查询的有关问题(新手)

WBOY
Release: 2016-06-13 12:03:55
Original
1100 people have browsed it

php连接mysql查询的问题(新手)
假如有2个属性 用户账号   用户密码
数据库的数据是这样的
用户账号   用户密码
A                 1111
B                  2222
C                  3333

我可以通过where      用户账号 = B ,再搜索就能把这一行的数据都能获取。
但是我想在where      用户账号 = B ,在特定仅仅获取这一行的用户密码就好了,那用什么函数。
 


------解决方案--------------------
select * from tb where  用户账号 = B limit 1
------解决方案--------------------
自己去mysql workbean试试就行了......

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template