mysql - Is there a way to make my credential information not return after I insert it into my database -


lets if wanted insert user infomation users table in database, following json format of information want insert:

{     'id': 1,     'username': 'asd123',     'password': 'abc123' } 

how can make return id , username when select * users id = 1

instead of

select * 

use

select id, username 

explanation: * used when want columns, otherwise use specific column names. use * when required.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -