Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

What does MySQL modify in my newly created tables?

4 like 0 dislike
When you create a table, and then run SHOW CREATE TABLE on it, you occasionally get different results than what you typed in. What does MySQL modify in your newly created tables?
asked 1 year ago by eagles11 (179,830 points)

1 Answer

1 like 0 dislike
 
Best answer
1. VARCHARs with length less than 4 become CHARs
2. CHARs with length more than 3 become VARCHARs.
3. NOT NULL gets added to the columns declared as PRIMARY KEYs
4. Default values such as NULL are specified for each column
answered 1 year ago by DBA-boss (120,990 points)

Related questions

3 like 0 dislike
1 answer
6 like 0 dislike
1 answer
asked 1 year ago by eagles11 (179,830 points)
9 like 0 dislike
0 answers
8 like 0 dislike
1 answer
8 like 0 dislike
1 answer