what is the basic diffrence betn a col declared in char(1)
and in varchar(1)
Answers were Sorted based on User's Feedback
Answer / nilam gandhi
char(1) is a fixed length character data,size character long.
Maximum size 2000 bytes.
Default size is 1 byte.
Varchar(1) is a variable length character string.
And the maximum size of the varchar(1) data type is 4000 bytes.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / penchal das
Char is static in size where as Varchar is dynamic in size.
if we use char(15) and we have used only 10 charectes then remaining memory space will be wasted.
In case of Varchar(15) if use 10 chars remaining memory space will be freed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Please give me the SP for the below scenario. I have two tables named Table1 and Table2...I need to fetch record by record from Table1 and insert the record in to table2 where the value in the sno column of the table1 is even number.
What is database replication? What are the different types of replication you can set up in sql server?
Define the one-to-one relationship while designing tables.
Give a example to search fr a string in all stored procedure in sql server.
What does asynchronous call backs means?
What is the function of inner join?
Which operator do you use to return all of the rows from one query except rows are returned in a second query?
Which is best Subquery (or) joins in sql server? explain why
How to use transact-sql statements to access the database engine?
what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration
how will u create "n" possible tables in sql...
How to copy the tables, schema and views from one sql server to another?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)