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

SQL ????? #60

Closed
teub opened this issue Apr 9, 2023 · 5 comments
Closed

SQL ????? #60

teub opened this issue Apr 9, 2023 · 5 comments

Comments

@teub
Copy link

teub commented Apr 9, 2023

Do you think there could be a SQL implementation ?
Would you recommend storing "false" in its own table so it can be shared and thus optimize the memory footprint ?

@teub
Copy link
Author

teub commented Apr 9, 2023

sorry I don't know SQL

@mawerty
Copy link
Owner

mawerty commented Apr 9, 2023

I have never written a single line of SQL in my life but its sounds like great idea

@mawerty
Copy link
Owner

mawerty commented Apr 9, 2023

Idk maybe someone will do it soon

@teub
Copy link
Author

teub commented Apr 9, 2023

maybe there needs to be a code bounty because SQL sounds very useful

@Acters
Copy link

Acters commented Apr 10, 2023

SQL is a server that handles databases and tables. Most programs return false. for an Is_Prime function call. This would essentially be:

SELECT false;
or
SELECT 0;

If you use SQLite, This will return the table name as false, and one database value of 0.
Other SQL database vendors will behave differently, and some versions of SQL server database implementations will throw an error.

On some implementation of SQL you can use:

VALUES(false)
or
VALUES(0)

some will throw an error for one or both, or both will will run fine. it is a weird world for SQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants