Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread correct way to alter a column??
Sat, Jun 16 2018 2:14 AMPermanent Link

Ian Branch

Avatar

Hi Guys,
Its just not clicking for me. Frown
Given column "Cust_Ref" from table Jobtickets is currently VARCHAR(12).  What's the correct syntax to change it to VARCHAR(20) using SQLs Alter Table/Alter Column?

Regards & TIA,
Ian
Sat, Jun 16 2018 2:52 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Ian


I'm going to use the "teach a man to fish" approach here.

Go into EDBManager, open the session & database, select the table and select Alter Table

Make the alterations in there (I'm assuming you know how to do that)

Then (and this is the important bit) - from EDBManager's menu select Explorer | SQL History

The SQL command needed to make the table alteration will be sitting there.

Pretty much all of the menu commands are reflected in there. Its only the trivial stuff like opening a session or database that isn't.

Remember this because its one of the best learning mechanisms and will prevent you from having to ask questions and wait for the answer.

Roy Lambert
Sat, Jun 16 2018 3:07 AMPermanent Link

Ian Branch

Avatar

Hi Roy,
Ahhhh!   That SQL History thing again.  I looked at the SQL tab on the main screen. Frown
Just not used to that facility/functionality.

Thank you for the pointer/reminder.

Regards,
Ian
Image