Skip to content
DbaFix
Just share answer and question for fixing database problem
MENU
  • HOME

Tag: syntax

Is there a way to avoid duplicating the definition of a foreign key?

By adminPosted on March 16, 2023

Question : I was wondering about this example CREATE TABLE cities ( city varchar(80) primary key, location point ); CREATE […]

MySQL load data infile ERROR 1064

By adminPosted on March 14, 2023

Question : I am using MySQL version 5.5 and I am trying to use load data infile and I am […]

Converting old SQL Server outer join syntax

By adminPosted on March 7, 2023

Question : I’m a Power Builder (PB) developer. I’ve migrated PB from 10 .5 to 12.5, and now I need […]

I’m trying to use a variable in Oracle PL/SQL, but I’m getting an error. What’s wrong here?

By adminPosted on March 3, 2023

Question : I come from an SQL Server background and I’m trying to figure out how to use Oracle PL/SQL […]

Incorrect syntax near the keyword ‘WHERE’ – SQL Server 2014

By adminPosted on February 24, 2023

Question : The error I get is Incorrect syntax near the keyword ‘WHERE’. Script: SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER […]

Why can’t I call my UDF directly? Why do I need to qualify it 3 levels deep?

By adminPosted on February 18, 2023

Question : I just created a UDF and testing it I found only works when I use this syntax SELECT […]

PSQL cte delete seem have have ambiguity when select same column from delete table

By adminPosted on February 10, 2023

Question : Both these two sql can be execute , the first one delete all , the second one is […]

How to create a temporary table using VALUES in PostgreSQL

By adminPosted on February 6, 2023

Question : I am learning PostgreSQL and trying to figure out how to create a temporary table or a WITH […]

Why is “INSERT INTO table;” a syntax error?

By adminPosted on February 6, 2023

Question : I have this: CREATE TABLE people ( id bigserial, timestamp timestamptz DEFAULT now() NOT NULL, PRIMARY KEY (id) […]

Why can’t I create a index using column definition in MySQL?

By adminPosted on February 2, 2023

Question : Consider the following create table syntax CREATE TABLE test1 (f1 int primary key, f2 int, unique key(f2)); I […]

  • 1
  • 2
  • 3
  • …
  • 14

Recent Posts

  • Speed up INSERTs
  • Regularly updating table with huge amount of rows
  • How can I create a gapless sequence?
  • Unable to Query Very Large Table
  • Why should I create an ID column when I can use others as key fields? [duplicate]
  • Force NOW to return new timestamps without committing the transaction
  • MariaDB on Windows Server 2012 R2 – out of memory
  • How to easily convert a comma seperated list of ids into a table of rows
  • clusterdb stopped working for PostgreSQL database in Ubuntu 12.04 server
  • Slow MySQL query
  • Database design : hotel room and its detail
  • How to use GROUP BY in an efficient way without losing attributes? [closed]
  • Query execution time is random, need to identify the root cause
  • Returning data where all categories exactly match
  • Partitioning increases CPU usage in mariadb
  • How to script out push subscription creation at the subscriber?
  • Can a transitive join loop infinitely?
  • 2 similar queries in large sql server table – 1 takes too long
  • Select data from another database instance on the same server in sql server
  • Is it possible to get server roles and database roles in a same query/script?

Categories

  • Database Backup
  • Database Design
  • Database Index
  • Database Optimization
  • InnoDB
  • Join
  • MariaDB
  • MongoDB
  • MySQL
  • Oracle
  • Performance
  • Permissions
  • Postgresql
  • Query Performance
  • Replication
  • Security
  • SQL Server
Proudly powered by WordPress / Support by: DizzyCoding