SQL Commands: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:
= Visiting =
= Visiting =


{| class="wikitable"
! || Postgres || MariaDB || SQLite
|-
| List tables
| <syntaxhighlight lang="sql"></syntaxhighlight>
| <syntaxhighlight lang="sql"></syntaxhighlight>
| <syntaxhighlight lang="sql"></syntaxhighlight>
|}


= SQLite 3 =
= SQLite 3 =

Revision as of 07:34, 8 April 2025

Functions

Postgres MariaDB SQLite
List tables


Visiting

Postgres MariaDB SQLite
List tables

SQLite 3

TODO Command
yyyymmdd to yyyy-mm-dd
SELECT printf('%s-%s-%s',
  SUBSTR(trading_date,1,4),
  SUBSTR(trading_date,5,2),
  SUBSTR(trading_date,7,2)
) FROM short_sell WHERE trading_date='20190605';