Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Basic MySQL query

$
0
0

In MySQL, I need to create a new table called users with the following fields:

id – integer type (primary key)first_name – varchar typeusername – varchar typepassword – char type with length 40 (this is the length of a sha1 hash)type – varchar type (‘admin’ or ‘author’) 

Everything looks straight forward except

type – varchar type (‘admin’ or ‘author’) .

How do I do this?


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>