1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Insert variable

Discussion in 'MySQL' started by BubikolRamios, Dec 17, 2020.

  1. #1
    So, this works and as you see it produces -1,-2,......
    If I insert
    after SET line....
    Hmm looks like all -1,-2,... becomes 0 or what ?

    [​IMG]
     
    BubikolRamios, Dec 17, 2020 IP
  2. BubikolRamios

    BubikolRamios Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    Problem: Inserting anything negative into INT unsigned turns it to 0 before insert, hence such confusing error message.
     
    BubikolRamios, Dec 18, 2020 IP