Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-13-2022 11:42 AM - edited 07-13-2022 11:45 AM
I am trying to use `describe table` with `apoc.load.jdbc` to pull information about SQL tables in a Neo4j query. Has anyone been able to do anything like this?
Example Query
CALL apoc.load.jdbc(<SQL connection string>, "
describe table
") YIELD row
07-13-2022 12:15 PM
@mckenzma what database vendor is Neo4j connecting to via apoc.load.jdbc. Are you able to get the same via a system table of said vendor, for example with Oracle one can query USER_TABLES so as to get similar data
07-14-2022 04:18 AM
I am pulling from Sybase SQL. Yes I can use `describe table` to pull information about the columns and data types using an SQL client to query.
07-14-2022 06:43 AM
@mckenzma but can you query from `sysobjects` and as described at https://stackoverflow.com/questions/1429898/from-a-sybase-database-how-i-can-get-table-description-f... to achieve the equivalent
07-27-2022 08:52 AM
I tried using
SELECT sc.*
FROM syscolumns sc
INNER JOIN sysobjects so ON sc.id = so.id
and got an error message: "Table name 'syscolumns' is ambiguous." If I try
SELECT * from sysobjects
then I see 2 entries: sysobjects & SYSOBJECTS
All the sessions of the conference are now available online