Bulk Insert

  • Hello.

    This line works fine.

    MyTable has 3 columns

    exec (insert MyTable SELECT 'C2100', 'LG', 'TV') and so on.

    But there similiar lines for udates? like

    update MyTable values (SELECT 'C2100', 'LG', 'TV')

    Please suggestion.

  • You do not need the EXEC thingy for each and one statement.

    INSERTMyTable

    SELECT'C2100',

    'LG',

    'TV'

    UPDATEMyTable

    SETCol1 = 'C2100',

    Col2 = 'LG',

    Col3 = 'TV'

    WHERESomeOtherCol = SomeValue -- To only update the record(s) satisfying the filter.


    N 56°04'39.16"
    E 12°55'05.25"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply