1.

Consider the following variable Declaration in SQL. a. name char (25) b. name Varchar (25) 1. Considering the utilisation of memory, which variable declaration is more suitable. 2. Justify your answer

Answer»

1. name varchar (25) 

2. Because char data type is fixed length. It allocates maximum memory i.e, here it allocates memory for 25 characters maybe there is a chance of memory wastage. But Varchar allocates only enough memory to store the actual size.



Discussion

No Comment Found