Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the best data type definition for Oracle when a field is alphanumeric and has a fixed length?

  • A.CHAR
  • B.VARCHAR2
  • C.LONG
  • D.NUMBER

Answer: A

Correct answer: CHAR

CHAR is fixed width and pads every value to the declared length, which is exactly right for data that genuinely has one length - a two-character state code, a fixed-format reference. For anything varying, the padding is waste, and VARCHAR2 is the correct choice instead.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.