Smartface, technologies and decay
@antonrevyako
Post #1266
2.13K
TH @nosingularity
Showing posts older than #1267 · Back to latest


CREATE TABLE vals(s VARCHAR(5));
INSERT INTO vals(s) VALUES('%');
INSERT INTO vals(s) VALUES('\%');
INSERT INTO vals(s) VALUES('\\%');
SELECT
s,
s LIKE '%' as "%",
s LIKE '\%' as "\%",
s LIKE '\\%' as "\\%"
FROM vals
ORDER BY s;
| S | % | \% | \\% |
|----|------|------|-------|
| % | TRUE | TRUE | FALSE |
| % | TRUE | TRUE | FALSE |
| \% | TRUE | TRUE | TRUE |
| s | % | \% | \\% |
|-----|---|----|-----|
| % | 1 | 0 | 0 |
| \% | 1 | 1 | 0 |
| \\% | 1 | 1 | 1 |
| s | % | \% | \% |
|----|---|----|----|
| % | 1 | 1 | 1 |
| \% | 1 | 0 | 0 |
| \% | 1 | 0 | 0 |
| s | % | \% | \\% |
|-----|------|-------|-------|
| % | true | true | false |
| \% | true | false | true |
| \\% | true | false | true |

Forwarded from Igor V
X (formerly Twitter) WebDevCody (@webdevcody) on X Y'all have been doing sql queries wrong...
SELECT
*
FROM
IDENTIFIER($my_table)
SELECT
IDENTIFIER($my_table).*
FROM
IDENTIFIER($my_table)
IDENTIFIER($my_table).*
IDENTIFIER($my_table).column_name
SELECT
IDENTIFIER($my_table1).*,
IDENTIFIER($my_table2).*
FROM
IDENTIFIER($my_table1),
IDENTIFIER($my_table2)
SELECT
*,
*
FROM
IDENTIFIER($my_table1),
IDENTIFIER($my_table2);
There will be no singularity Days without explanation JOINs via Venn diagrams by data influencers: 0 https://blog.jooq.org/say-no-to-venn-diagrams-when-explaining-joins/
