Column selection
Column selection can be used to select a rectangular area of a file.
Mac
Using mouse
Left Mouse Button + ⌥
OR: Middle Mouse Button
Add to selection: ⌘
Subtract from selection: ⇧+⌘
Using keyboard
Ctrl+Shift+⬆
Ctrl+Shift+⬇
Column selection can be used to select a rectangular area of a file.
Left Mouse Button + ⌥
OR: Middle Mouse Button
Add to selection: ⌘
Subtract from selection: ⇧+⌘
Ctrl+Shift+⬆
Ctrl+Shift+⬇
For the general programming knowledge.
I try to list out the questions during working on Postgresql here for the future reference.
Use function TO_TIMESTAMP
|
|
Use jsonb->>key
operator, be carefuly if you use jsonb->key
it will return back jsonb
type, not a string.
|
|
jsonb_extract_path ( from_json jsonb, VARIADIC path_elems text[] ) → jsonb
Extracts JSON sub-object at the specified path. (This is functionally equivalent to the #> operator, but writing the path out as a variadic list can be more convenient in some cases.)
|
|
You need to change the config file postgresql.conf
and set log_min_messages = notice
, there are some options you can choose, check the config file.
If you have a value something that is a composite type, for example a row of a table, something IS NOT NULL
is only true if none of the attributes of the composite are NULL.
check more details here
if you see some error like this Postgresql ERROR: hour "16" is invalid for the 12-hour clock
you could do this TO_TIMESTAMP(i_test_date ->> 'created_at', 'YYYY-MM-DD HH24:MI:SS')
to save the time as 24hours format
list some commands often being used:
|
|
|
|
|
|
|
|
Probably the quick and easiest way to convert SQLite to MySQL includes two general steps:
|
|
|
|
“In theory” means that solution wouldn’t work as there are a few differences in grammars between MySQL and SQLite.
There are just some differences between SQLite and MySQL syntax
SQLite | MySQL |
---|---|
AUTOINCREMENT | AUTO_INCREMENT |
TEXT | varchars |
double quotes (" “) | backticks (` `) |
BEGIN TRANSACTION; COMMIT; |
BEGIN; COMMIT |
CLOB | TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT |
PRAGMA foreign_keys=OFF; | SET FOREIGN_KEY_CHECKS=0; |