top of page

SQL Developer [general]

Открытая·2 пользователя

CerebroSQL: Procedure Openlist

[RU]

Процедура openlist служит для возможности использования соединения с БД одного листа в другом.

 

Процедура поддерживается в 2 операциях: create и insert.

ВАЖНО: перенос данных осуществляется в текстовом виде, т.е. на стороне приемника таблица будет создана с полями типа Text или varchar в зависимости от СУБД


Синтаксис

create table <имя таблицы> as openlist('<Имя листа>','<Запрос выполняемый на стороне источника>')

 

Требования

  • запрещено экранирование кавычек внутри запроса

  • поддерживаются только типы данных которые можно привести к text


[EN]

The openlist procedure is used to use the database connection of one sheet in another.


The procedure is supported in 2 operations: create and insert.

IMPORTANT: data transfer is carried out in text form, i.e. on the receiver side, the table will be created with fields of type Text or varchar, depending on the DBMS


Syntax

create table <table name> as openlist('<Sheet name>','<Source-side query>')


Requirements

  • escaping quotes inside a query is not allowed

  • only data types that can be cast to text are supported​



Log

The query: 06.11.2021 13:56:12Query text: create table mysql_tables as ...---------------------------------------------------------Position: 35

##################Remote query##################

select from tdb.my_catalog

##################Parameter##################

Remote list name: LIST2

Remote list type: MYSQL

Current list name: LIST1

Current list type: PG

####################Command####################

create table mysql_tables as  Code: 301

Count: 4

select from tdb.my_catalog

mysql_tables

Toper: 3

create table mysql_tables ( "TABLE_CATALOG" Text, "TABLE_SCHEMA" Text, "TABLE_NAME" Text, "TABLE_TYPE" Text, "ENGINE" Text, "VERSION" Text, "ROW_FORMAT" Text, "TABLE_ROWS" Text, "AVG_ROW_LENGTH" Text, "DATA_LENGTH" Text, "MAX_DATA_LENGTH" Text, "INDEX_LENGTH" Text, "DATA_FREE" Text, "AUTO_INCREMENT" Text, "CREATE_TIME" Text, "UPDATE_TIME" Text, "CHECK_TIME" Text, "TABLE_COLLATION" Text, "CHECKSUM" Text, "CREATE_OPTIONS" Text, "TABLE_COMMENT" Text)


Table create - successful

Starting load dataRows transferred: 356 [ALL ROWS:356]

Run time:  0.333c.

Log operation

D:\CerebroSQL\CerebroSQL 21.11\tmp\lists\openist2021_11_06_135612.log

D:\CerebroSQL\CerebroSQL 21.11\tmp\lists\openist2021_11_06_135612.query

4 просмотра

О группе

Добро пожаловать в группу! Общайтесь с другими участниками, получайте обновления и делитесь фото и видео.

Участники

bottom of page