• ALTER TABLE syntax (Access 97 SR-2)

    • This topic has 2 replies, 2 voices, and was last updated 23 years ago.
    Author
    Topic
    #371057

    Right now I have a query like this:
    ALTER TABLE MyTable ADD COLUMN MyColumn Number;

    This adds a column named MyColumn whose data type is Number and whose field size is Double. (Double is evidently the default.) I want to specify “Long Integer” but I can’t seem to get the syntax right. Can anyone show me how to do this?

    Viewing 0 reply threads
    Author
    Replies
    • #588746

      Use :
      ALTER TABLE MyTable ADD COLUMN MyColumn Long;

      • #588749

        Thanks! I just ran the query and it worked. Of course I thought I *had* tried that one, but obviously I must have mis-typed something. I appreciate the help.

    Viewing 0 reply threads
    Reply To: ALTER TABLE syntax (Access 97 SR-2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: