初級エンジニア向けのSQLチートシートです。SQLで迷った時にご活用ください! -- テーブルの作成 CREATE TABLE テーブル名 ( 列名1 データ型 制約, 列名2 データ型 制約, ... ); -- テーブル構造の確認 DESCRIBE テーブル名; -- MySQL SHOW COLUMNS FROM テーブル名; -- MySQL, MariaDB ...
!MESSAGE SELECT c.relname,a.*,pg_catalog.pg_get_expr(ad.adbin, ad.adrelid, true) as def_value,dsc.description,dep.objid FROM pg_catalog.pg_attribute a INNER JOIN pg_catalog.pg_class c ON (a.attrelid=c ...
You think 'SELECT 1;' is simple? Let’s walk through everything that happens just to return the number 1 from an existing connection to Postgres. 1. Client sends the query. Whether you're using psql, ...
PostgreSQL is an open-source database that you can customize in many ways. And this beginner-friendly course can help you determine if it's a good fit for your projects. It covers the SELECT statement ...