-3

What is the different between bit(1) and tinyint(1) are they the same? This happens while we migrated data from a older version of mysql (maybe 5.1) to the latest version (say 5.5). Are they functionally the same

Sam
  • 8,387
  • 19
  • 62
  • 97

1 Answers1

0
  • BIT(m)

A bit-field type. M indicates the number of bits per value, from 1 to 64. The default is 1 if M is omitted.

  • TINYINT(m)

A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255.

See Numeric Type Overview

John Woo
  • 258,903
  • 69
  • 498
  • 492