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 10,693 public repositories matching this topic...

zz-jason
zz-jason commented Mar 20, 2020

Development Task

create a table:

CREATE TABLE `t` (
  `a` bigint(20) DEFAULT NULL,
  `b` bigint(20) DEFAULT NULL,
  KEY `idx` (`a`)
);

querying that table with an index hint which uses an undefined index aaa:

TiDB(root@127.0.0.1:test) > select /*+ force_index(aaa) */ * from t;
Empty set, 1 warning (0.00 sec)

TiDB(root@127.0.0.1:test) > show warnings;
+---
jy95
jy95 commented Dec 29, 2019

Issue Description

Is your feature request related to a problem? Please describe.

When doing some migrations, I would like to delete a column created in a previous migration.
However, this is not possible with the current code for some scenarios.

An example :
migration v3

'use strict';

let opts = {tableName: 'Exercises'};

module.exports = {
    up: (queryInterf
andy-kimball
andy-kimball commented Mar 9, 2020

PG 12 supports AS MATERIALIZED and AS NOT MATERIALIZED syntax for user controller of CTE materialization. For example:

WITH x AS MATERIALIZED (SELECT * FROM very_large_table) SELECT * FROM x;

With this syntax, the user can override the optimizer's default decision to not materialize that table (since it's only referenced once).

WITH x AS NOT MATERIALIZED (SELECT * FROM very_s
ClickHouse
alexey-milovidov
alexey-milovidov commented Mar 10, 2020

Describe the bug or unexpected behaviour

milovidov-Pro-P30 :) SELECT toDateTime(1583851242, 'Asia/Shanghai')

SELECT toDateTime(1583851242, 'Asia/Shanghai')

┌─toDateTime(1583851242, 'Asia/Shanghai')─┐
│                     2020-03-10 22:40:42 │
└─────────────────────────────────────────┘

1 rows in set. Elapsed: 0.087 sec. 

milovidov-Pro-P30 :) SELECT toDateTimeOrNull(1583851
comicfans
comicfans commented Dec 12, 2019

Relevant system information:

  • OS: archlinux 64bit kernel 5.1.15
  • PostgreSQL version (output of postgres --version): postgres (PostgreSQL) 11.2
  • TimescaleDB version (output of \dx in psql): 1.5.1
  • Installation method: compile from source

Describe the bug

before upgrade, I'm using timescaledb 1.3, pg_dump gives no warning

pg_dump -U myname --format=custom 
willvousden
willvousden commented Oct 13, 2018

Is the README the only documentation available for this project? I find myself having to read the source to understand the interface and features that are available (e.g., context managers, bulk_query, etc.).

In the case of bulk_query, the arguments are simply passed through to the underlying SQLAlchemy engine, with no explanation. I tracked it down in [SQLAlchemy's documentation](https:/

JeanGolang
JeanGolang commented Feb 7, 2017

Hello Philip!
I think there is an issue with this part of the code of rqlite (store/store.go).

func (s *Store) Database(leader bool) ([]byte, error) {
	if leader && s.raft.State() != raft.Leader {
		return nil, ErrNotLeader
	}
	// Ensure only one snapshot can take place at once, and block all queries.
	s.mu.Lock()
	defer s.mu.Unlock()

	f, err := ioutil.TempFile("", "rqlilte-snap-
server
matt-h
matt-h commented Feb 14, 2017

Right now the Equivalent Domains is sent from the client and stored on the server in plain text. This should be encrypted on the client the same as passwords/sites.

This isn't a huge security issue, but if the database was compromised then the list of domains would be available from each account. This list of domains would be ones that the user has accounts on creating a privacy issue.

surister
surister commented Jan 21, 2020

This is a reminder for me or a task if anyone wants :P

imagen

Basically, The last two questions aren't really regex's questions.

To do:

  • Move said questions to correct place.
  • Add new regex questions (Python related!)?
  • Maybe add a new ## Regex section, as it is a valuable skill
flyway
jeduardo824
jeduardo824 commented Jul 18, 2019

After facing an issue caused by Ransack interpreting 1/'t' as true and some unsuccessful research, I found about the sanitize args and the recommended way to skip them. The documentation never mentions that ransackable_scopes_sanitize_args must be a class method and the example shown defines an instance method.

I think that's worth a documentation update, making more clear how to use th

Created by Donald D. Chamberlin, Raymond F. Boyce

Released 1986

Wikipedia
Wikipedia

Related Topics

database
You can’t perform that action at this time.