Syntax when annotating tables in SQL (Oracle)


Mayotte

I want to annotate a table in SQL (Oracle) and add a URL to this annotation:

comment on table A is 'https://stackoverflow.com/';

But it returns an error: unknown command.

What is the correct syntax and how to escape special characters?

Jeff Smith

simply

comment on table "HR"."A"  is 'https://stackoverflow.com/#'

Since you tagged SQL Developer, that's in SQL Developer.

enter image description here

It now appears here:

enter image description here

You can find relevant documentation here .

Related


Causes of SQL syntax errors when creating tables in the database

Javert Path While creating the table in the mysql query, I am getting the following error. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'String, last_n

Causes of SQL syntax errors when creating tables in the database

Javert Path While creating the table in the mysql query, I am getting the following error. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'String, last_n

Syntax error in PL/SQL Oracle script when creating sequence

double flower I try to execute the following PL/SQL script using Oracle SQL Developer's "Run Script" command. declare current_max_value_id number(8, 0); begin select max(id) into current_max_value_id from "DIM_VALUE"; create sequence value_

Convert Oracle sql syntax

Wide I want to change the syntax of the Oracle SQL query, The original query contains a join: WHERE (A.ID = B.ID OR A.ID is null) I want to change this to LEFT OUTER JOINor INNER JOINsyntax, I have tried the following but the query doesn't return the same res

Oracle SQL Multiple Tables

Husky I'm still pretty new to SQL in general, so this may not be the best worded question. I want to get columns from different tables. They don't have any common columns, but there is a third table with information that can link them together. This is what I

Syntax error when joining tables

but I am trying to merge multiple tables. This is how I do it: CREATE TABLE big3 AS SELECT * FROM trainSearchStream a LEFT OUTER JOIN SearchInfo b ON b.SearchID=a.SearchID LIMIT 3 LEFT OUTER JOIN AdsInfo c ON c.AdID=a.AdID LIMIT 3; However, I get this error

Syntax error when joining tables

but I am trying to merge multiple tables. This is how I do it: CREATE TABLE big3 AS SELECT * FROM trainSearchStream a LEFT OUTER JOIN SearchInfo b ON b.SearchID=a.SearchID LIMIT 3 LEFT OUTER JOIN AdsInfo c ON c.AdID=a.AdID LIMIT 3; However, I get this error

Syntax error when joining tables

but I am trying to merge multiple tables. This is how I do it: CREATE TABLE big3 AS SELECT * FROM trainSearchStream a LEFT OUTER JOIN SearchInfo b ON b.SearchID=a.SearchID LIMIT 3 LEFT OUTER JOIN AdsInfo c ON c.AdID=a.AdID LIMIT 3; However, I get this error

Oracle left syntax to join three or more tables

Manolo I'm trying to wrap my head around the old oracle Left Join syntax. Having two tables will do: FROM A, B WHERE A.Col = B.Col (+) (Please call this query Q0) This is easy to understand, e.g. using this Venn diagram But when we add a third or more sheets

Oracle to Postgres SQL syntax conversion

Goku Viru I'm working on converting from Oracle to Postgres, but I'm stuck at a piece of code and it's driving me crazy. I'm not sure how to use SUM(VALUE) KEEP (DENSE_RANK FIRST ORDER BY START_DATE DESC) AS LATEST_VALUEin Postgres . I have referenced this pag

Oracle to Postgres SQL syntax conversion

Goku Viru I'm working on converting from Oracle to Postgres, but I'm stuck at a piece of code and it's driving me crazy. I'm not sure how to use SUM(VALUE) KEEP (DENSE_RANK FIRST ORDER BY START_DATE DESC) AS LATEST_VALUEin Postgres . I have referenced this pag

oracle sql function output syntax

Guanyuan I have a problem with the output, the portfolio_description is empty but I think it's ok I don't know what the syntax is and pass two input parameters P_Portfolio_number and P_Stock_Code begin select Investor_Number,portfolio_description into V_Inve

Oracle SQL syntax error in Netbeans

Callum Evans I am creating a trigger to allow me to automatically update the primary key when a new record is inserted. According to Google, this seems to be the preferred method. However, when I run the following SQL code: CREATE OR REPLACE TRIGGER rooms_inse

Oracle to Postgres SQL syntax conversion

Goku Viru I'm working on converting from Oracle to Postgres, but I'm stuck at a piece of code and it's driving me crazy. I'm not sure how to use SUM(VALUE) KEEP (DENSE_RANK FIRST ORDER BY START_DATE DESC) AS LATEST_VALUEin Postgres . I have referenced this pag

Oracle SQL syntax error in Netbeans

Callum Evans I am creating a trigger to allow me to automatically update the primary key when a new record is inserted. According to Google, this seems to be the preferred method. However, when I run the following SQL code: CREATE OR REPLACE TRIGGER rooms_inse