Permalink
Browse files

test sql formatting

  • Loading branch information...
1 parent 4326273 commit 9eb7d69b8a79b1010e470f1b478329be4d3b8787 @figital committed Jun 20, 2012
Showing with 17 additions and 1 deletion.
  1. +17 −1 README.md
View
@@ -1,4 +1,20 @@
PeachQL
=======
-Having trouble querying Peachtree or Sage 50 via ODBC? Try this !
+Having trouble querying Peachtree or Sage 50 via ODBC? Try this !
+
+select
+ xf$Name as tablename,
+ xe$Name as fieldname,
+ xf$id as tableid,
+ xe$id as fieldid,
+ xe$datatype as datatype,
+ xe$size as size
+from
+ x$File f
+ inner join x$Field e on e.xe$file = f.xf$id
+where
+ tableid in (11,22,33,34,46,38,46,51,52,55,56,58,72,96)
+order by
+ tableid asc,
+ fieldname asc

0 comments on commit 9eb7d69

Please sign in to comment.