|
| 1 | +-- MySQL/MariaDB RDBMS |
| 2 | +-- ODBC Data Source Name (DSN): mysql5ma |
| 3 | +-- OpenLink ODBC Driver Connection Attributes (X.500 Name): DSN=mysql5ma;HOST={request-broker-dns-name};SVT=MySQL |
| 4 | + |
| 5 | +-- Drop Currently Attached (Remote or External) Tables |
| 6 | + |
| 7 | +DROP TABLE mysql.artist |
| 8 | +DROP TABLE mysql.bulkoperation_test_table |
| 9 | +DROP TABLE mysql.countries ; |
| 10 | +DROP TABLE mysql.customers ; |
| 11 | +DROP TABLE mysql.cust_key ; |
| 12 | +DROP TABLE mysql.department ; |
| 13 | +DROP TABLE mysql.employees ; |
| 14 | +DROP TABLE mysql.flags ; |
| 15 | +DROP TABLE mysql.order_details ; |
| 16 | +DROP TABLE mysql.parts ; |
| 17 | +DROP TABLE mysql.products ; |
| 18 | +DROP TABLE mysql.provinces ; |
| 19 | +DROP TABLE mysql.shippers ; |
| 20 | +DROP TABLE mysql.specialcolumns_test_table |
| 21 | +DROP TABLE mysql.suppliers |
| 22 | +DROP TABLE mysql.workofart |
| 23 | +DROP TABLE mysql.workofarttype |
| 24 | + |
| 25 | + |
| 26 | +-- Prepare Remote Data Source (ODBC DSNs) for use by Virtuoso |
| 27 | +-- Note: http://docs.openlinksw.com/virtuoso/fn_vd_remote_data_source/ |
| 28 | + |
| 29 | +DB..VD_REMOTE_DATA_SOURCE ('mysql5ma','','','') ; |
| 30 | + |
| 31 | +--Attach Tables |
| 32 | + |
| 33 | +ATTACH TABLE artist AS mysql.artist FROM 'mysql5ma' ; |
| 34 | +ATTACH TABLE countries AS mysql.countries FROM 'mysql5ma' ; |
| 35 | +ATTACH TABLE customers AS mysql.customers FROM 'mysql5ma' ; |
| 36 | +ATTACH TABLE customers_key AS mysql.customers_key FROM 'mysql5ma' ; |
| 37 | +ATTACH TABLE department AS mysql.department FROM 'mysql5ma' ; |
| 38 | +ATTACH TABLE employees AS mysql.employees FROM 'mysql5ma' ; |
| 39 | +ATTACH TABLE flags AS mysql.flags FROM 'mysql5ma' ; |
| 40 | +ATTACH TABLE order_details AS mysql.order_details FROM 'mysql5ma' ; |
| 41 | +ATTACH TABLE parts AS mysql.parts FROM 'mysql5ma' ; |
| 42 | +ATTACH TABLE products AS mysql.products FROM 'mysql5ma' ; |
| 43 | +ATTACH TABLE provinces AS mysql.provinces FROM 'mysql5ma' ; |
| 44 | +ATTACH TABLE shippers AS mysql.shippers FROM 'mysql5ma' ; |
| 45 | +ATTACH TABLE suppliers AS mysql.suppliers FROM 'mysql5ma' ; |
| 46 | +ATTACH TABLE workofart AS mysql.workofart FROM 'mysql5ma' ; |
| 47 | +ATTACH TABLE workofarttype AS mysql.workofarttype FROM 'mysql5ma' ; |
| 48 | + |
| 49 | +COMMIT WORK ; |
| 50 | + |
| 51 | +SELECT TOP 5 * FROM mysql.artist ; |
| 52 | +SELECT TOP 5 * FROM mysql.countries ; |
| 53 | +SELECT TOP 5 * FROM mysql.customers ; |
| 54 | +SELECT TOP 5 * FROM mysql.customers_key ; |
| 55 | +SELECT TOP 5 * FROM mysql.department ; |
| 56 | +SELECT TOP 5 * FROM mysql.employees ; |
| 57 | +SELECT TOP 5 * FROM mysql.flags ; |
| 58 | +SELECT TOP 5 * FROM mysql.order.details ; |
| 59 | +SELECT TOP 5 * FROM mysql.parts ; |
| 60 | +SELECT TOP 5 * FROM mysql.products ; |
| 61 | +SELECT TOP 5 * FROM mysql.provinces ; |
| 62 | +SELECT TOP 5 * FROM mysql.shippers ; |
| 63 | +SELECT TOP 5 * FROM mysql.suppliers ; |
| 64 | +SELECT TOP 5 * FROM mysql.workofart ; |
| 65 | +SELECT TOP 5 * FROM mysql.workofarttype ; |
0 commit comments