(PHP and My SQL for Dynamic Websites)
What version of MySQL are you using? if you dont know, find out now!
What characters can be used in database,table, and column names?
Should you treat database,table, and column names as case-sensitive or case-insensitive?
What are the three general column types?
What are the differences between CHAR and VARCHAR?
What version of MySQL are you using?
Answer ) Version 8.0.21
What characters can be used in database,table, and column names?
Answer )
Following are the legal characters we can use in SQL :
Should you treat database,table, and column names as case-sensitive or case-insensitive?
Answer ) case-insensitive
Because, MySQL converts all table names to lowercase on storage and lookup. hence Table names are stored in lowercase on disk and table, column names are not case-sensitive
What are the three general column types?
What are the differences between CHAR and VARCHAR?
CHAR datatype is used to store character string of fixed length if the length of string stored is less than the specified length then it is padded with extra blank spaces so that its length will be equal to the set length Storage size of CHAR datatype is of n bytes(set length).
whereas VARCHAR is a datatype which is used to store character string of variable length but only upto maximum set length. if the length of string is less than fixed length then it will store as it is without padded extra blank spaces. Storage size of VARCHAR is equal to the actual length of the entered string in bytes.
Get Answers For Free
Most questions answered within 1 hours.