Sql

Amelia P.

asked • 09/02/15

Sql doubt regarding datatype

In sql there is a datatype int for integer values and varchar is for either integer or words, so if i want to input like A28 which datatype should i use?

Chandra G.

tutor
varchar is for strings and since A28 is an alphanumeric string, you have to varchar. If all strings are of length 3, the type to use is varchar(3)
Report

08/23/21

1 Expert Answer

By:

David W. answered • 09/02/15

Tutor
4.7 (68)

Experienced Prof

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.