Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo, fix sql query, add resource to docs/sql/faqs.md #202

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/sql/faqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ No, not at this time as there are potential determinism issues involved.

Only "flattened" subqueries are supported within `INSERT` statements but are not possible in `UPDATES`. For read queries, nesting subqueries is perfectly acceptable. See the [docs for more info](/sql/write#inserting-data).

## Does Tableland support numbers with decimals values?
## Does Tableland support numbers with decimal values?

No, because floating points are hard to deal with in decentralized systems due to non-deterministic behavior. So, blockchains and related infrastructure have to adopt whole integer values and arithmetic, instead.

Expand All @@ -37,7 +37,7 @@ No—and read the [SQL functions docs](/sql/functions) for details!
SQL string literals (e.g., a table with a TEXT value) are wrapped single quotes. In order to use a single quote within the string literal, double the single quote that must be escaped:

```sql
INSERT INTO escape_table (id, VALUES (0, 'My string''s escaping!')
INSERT INTO escape_table (id, val) VALUES (0, 'My string''s escaping!')
```

## What's the difference between single and double quotes in SQL?
Expand Down Expand Up @@ -70,6 +70,7 @@ The following is a list of cool and useful SQL-related tools. These are not affi
- SQL formatter:
- [https://sqltools.beekeeperstudio.io/format](https://sqltools.beekeeperstudio.io/format)
- [https://codebeautify.org/sqlformatter](https://codebeautify.org/sqlformatter)
- [https://sqlable.com/formatter/](https://sqlable.com/formatter/)
- Mock SQL data:
- [https://www.mockaroo.com/](https://www.mockaroo.com/)
- [https://softwium.com/mockium/](https://softwium.com/mockium/)
Expand Down