Skip to main content

pregos blog

  • Blog
  • Impressum

Schlagwort: select

HowTo: readable booleans on MySQL/MariaDB SELECT …

17. März 201717. März 2017 prego Ein Kommentar

I often need to work in a database on the command line. Booleans are not displayed in an intuitive way. I mean this:

There is a simple trick that helps me to read it much better: cast it to an integer. This is done by adding +0 to the boolean column:

Neueste Kommentare

  • Stefan bei Puppet: Hiera und Puppet – Installation, Einrichten, Moduleinbindung
  • prego bei chmod 755 rekursiv NUR auf Verzeichnisse
  • linuxfan bei chmod 755 rekursiv NUR auf Verzeichnisse

Archive

RSS

  • Beitrags-Feed (RSS)
  • Kommentare als RSS

  • Twitter
  • Github
pregos blog All rights reserved. Theme von Colorlib Powered by WordPress