Help Blog of RoR, Ruby, Linux

Меню

Перейти к содержимому
  • Главная

update field

https://dev.mysql.com/doc/refman/5.7/en/update.html

UPDATE some_table SET field1='Value 1' WHERE primary_key = 7
UPDATE `Table A`,`Table B`
SET `Table A`.`text`=concat_ws('',`Table A`.`text`,`Table B`.`B-num`," from ",`Table B`.`date`,'/')
UPDATE `table` SET `keywords` = concat_ws(', ',`keywords`,'main')

http://theory.phphtml.net/sql/concat_ws.html

Запись опубликована 18.04.2018 автором shilovk в рубрике mysql.

Навигация по записям

← clock is fast — ntp bash macos →

Рубрики

  • all (6)
  • api (1)
    • maps (1)
  • atom (1)
    • snippet (1)
  • bd (43)
    • mongodb (13)
    • mysql (27)
    • postgesql (3)
    • redis (2)
  • css (1)
    • img (1)
  • hosting (1)
  • html (2)
    • mp3 (1)
  • jquery (1)
  • js (1)
  • lan (1)
  • linux (99)
    • apache (2)
    • arh (3)
    • autorun (2)
    • background (1)
    • bash (2)
    • chkconfig (2)
    • clock (1)
    • commands (2)
    • cron (1)
    • curl and wget (1)
    • date (2)
    • drive (2)
    • du (1)
    • find (3)
    • ftp (2)
    • git (10)
    • grep (1)
    • history (1)
    • htop (1)
    • imagemagick (1)
    • iptables (8)
    • kill (2)
    • ln (1)
    • log (1)
    • mail (2)
    • main (1)
    • mogrify (1)
    • mount (2)
    • nginx (9)
    • php (7)
    • port (1)
    • ram (1)
    • repo (1)
    • rsync (1)
    • run (1)
    • scp (2)
    • sendmail (1)
    • ssh (6)
    • start (2)
    • swap (3)
    • system (2)
    • tail (1)
    • users (1)
    • vim (3)
    • webdav (1)
    • yum (1)
    • zip (1)
  • mac (6)
    • bash (4)
    • ip (1)
  • moodle (1)
  • programs (3)
    • sublime (3)
  • rails (23)
    • AR (1)
    • cucumber (1)
    • datetime (1)
    • errors (1)
    • faye (1)
    • gems (5)
      • gemset (1)
      • passenger (4)
    • migration (1)
    • paranoia (1)
    • pdf & img (1)
    • rake (1)
    • rvm (1)
    • sidekiq (1)
    • storage (1)
    • video (1)
  • S3 (1)
  • vagrant (1)
  • windows (6)
    • boot (3)
    • flash (1)
    • network (1)
  • wordpress (6)
    • log (1)
    • login (2)
    • ssl (1)
  • Yandex and Google (1)

Свежие записи

  • Update Exim
  • S3 mount to Linux, MacOS, Windows
  • Atom snippets
  • eslintrc
  • MySQL — SELECT list is not in GROUP BY clause and…
Сайт работает на WordPress