Skip to content
#

SQL

sql logo

SQL stands for structured query language. It uses commands such as "select", "insert", "update", "delete". Some common relational database management systems that use SQL are: Oracle, MySQL, Microsoft SQL Server, PostgreSQL, etc.

Here are 23,011 public repositories matching this topic...

dbeaver
KOLANICH
KOLANICH commented Jan 11, 2019

Sometimes it is needed to store compressed data in the DB. Unfortunately not all the DBs have built-in compression and FUSE compressed FSes are not available for every OS. So it may make sense to store compressed binary blobs in the DB.

Unfortunately when one sees them in DBeaver he sees them compressed, but often they are needed uncompressed. So it'd be nice to have a feature to decompress the

cockroach
andyli
andyli commented Mar 10, 2022

Describe the problem

To use a timestamp value in decimal, in Postgres, I use the to_timestamp() function as follows

select to_timestamp(1646906263.278);

Since cockroach doesn't have to_timestamp(), I use a cast instead:

select 1646906263.278::timestamptz;

But it results in SQL Error [42846]: ERROR: invalid cast: decimal -> timestamptz

Casting an inte

Aries-Lee1991
Aries-Lee1991 commented Dec 16, 2021

In https://github.com/taosdata/TDengine/blob/develop/src/client/src/tscPrepare.c, Local variable loopCont is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make loopCont not remain constant.

So the 1567th line should be removed.
![image](https://user-im

cube.js
leogodin217
leogodin217 commented Sep 17, 2021

Describe the bug
Using a time dimension on a runningTotal measure on Snowflake mixes quoted and unquoted columns in the query. This fails the query, because Snowflake has specific rules about quoted columns. Specifically:

  • All unquoted column names are treated as upper case
  • Quoted column names are case sensitive.

So "date_from" <> date_from

To Reproduce
Steps to reproduce

liuqianhong6007
liuqianhong6007 commented Oct 21, 2021

When I try to connect dolt server using golang's go-sql-driver/mysql driver in multiple heads mode, It seems that go-sql-driver/mysql driver does't support database with a sub name. DSN string format in go-sql-driver/mysql like [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...&paramN=valueN]. When dbname is "mydb", It works, but not work when dbname is "mydb/feature-branch".

server
Areedtz
Areedtz commented May 29, 2021

Describe the Bug

Sending invalid GUIDs to API endpoints will cause them to return an error code "500 Internal Server Error".

Steps To Reproduce

  1. HTTP DELETE to API endpoint such as /api/emergency-access/ with invalid GUID like "asd"

Expected Result

Endpoint returns a "400 Bad Request"

Actual Result

Endpoint returns a "500 Internal Server Error"

Environment

questdb
amunra
amunra commented Mar 15, 2022

Describe the Bug

The JSON response sent back over HTTP doesn't encode certain characters correctly.

For example, if a value in a string column contains the char \1 the byte value is copied verbatim in the response, breaking the client:

>>> json.loads('"\1"')
...
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 2 (char 1)

Instead, we shou

immudb
zaza81
zaza81 commented Oct 19, 2021
  • Missing information on how to create other databases
  • Missing information on how to switch to other databases
  • When using time travel, we don’t know where to get the transaction number from - we should show this to the user after committing data (this may be a missing capability in immudb / tools).
  • The last long query example in the quick start is incorrect (incorrect

This repository contains all the DSA (Data-Structures, Algorithms, 450 DSA by Love Babbar Bhaiya, FAANG Questions), Technical Subjects (OS + DBMS + SQL + CN + OOPs) Theory+Questions, FAANG Interview questions, and Miscellaneous Stuff (Programming MCQs, Puzzles, Aptitude, Reasoning). The Programming languages used for demonstration are C++, Python, and Java.

  • Updated Mar 12, 2022
  • Jupyter Notebook

Created by Donald D. Chamberlin, Raymond F. Boyce

Released 1986

Wikipedia
Wikipedia

Related Topics

database