From d74a7b7aec40d83b940dbfe10850734075aa6c5c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 27 Jun 2021 18:59:21 +0100 Subject: Add an existing table to the config --- lib/input/sql/selectColumns.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 lib/input/sql/selectColumns.sql (limited to 'lib/input') diff --git a/lib/input/sql/selectColumns.sql b/lib/input/sql/selectColumns.sql new file mode 100644 index 0000000..a8a224c --- /dev/null +++ b/lib/input/sql/selectColumns.sql @@ -0,0 +1,5 @@ +SELECT column_name, is_nullable = 'YES', column_type, column_key = 'PRI' +FROM information_schema.columns +WHERE table_schema = DATABASE() +AND table_name = ? +ORDER BY ordinal_position -- cgit v1.2.3