Changing the column from varchar to int

Hiya I am new to mySQL and picking it up relatively quickly.

However I needed to change the column from varchar to INT. this needs to be int

can someone help please?

Upvotes: 0

Views: 3196

Answers (1)

Nerdi.org
Nerdi.org

Reputation: 923

ALTER TABLE tablename MODIFY columnname INTEGER;

This is the SQL to do it.

Upvotes: 2

Related Questions