{"id":235,"date":"2010-07-16T03:28:23","date_gmt":"2010-07-16T08:28:23","guid":{"rendered":"http:\/\/www.dpriver.com\/blog\/?page_id=235"},"modified":"2023-12-12T10:47:14","modified_gmt":"2023-12-12T15:47:14","slug":"list-of-demos-illustrate-how-to-use-general-sql-parser","status":"publish","type":"page","link":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/","title":{"rendered":"List of demos illustrate how to use general sql parser"},"content":{"rendered":"<p>We collect all kinds of examples in this page to illustrate how to use general sql parser, help you to make better use of this library. Some of those examples were requested by our customers, we publish those examples here too. If you need any examples that can&#8217;t find here, feel free to contact us to <a href=\"https:\/\/gudusoft.atlassian.net\/servicedesk\/customer\/portal\/4\">request a demo<\/a>.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/general-sql-parser-benchmark\/\">Benchmark of General SQL Parser <\/a><\/li>\n<li><a href=\"http:\/\/www.sqlparser.com\/features\/sql-formatter.php\">Add SQL format\/beautify feature in your own program in 5 minutes, 10 lines code with more than 80 format options. <\/a><\/li>\n<li><a href=\"http:\/\/www.sqlparser.com\/features\/sql-formatter.php\">User customized color of formatted SQL element in RTF and HTML.<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/vendor-specific-offline-sql-syntax-check\/\">Vendor-specific offline syntax check.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/listing-all-table-and-column-references\/\">Fetch columns and tables in SQL script.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/find-out-what-clause-a-db-object-belongs-to\/\">Find out what clause a DB Object belongs to?(Java version).<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/get-referenced-table-column-in-a-select-list-item\/\">Get referenced table and columns in select list item (Java version).<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/separate-the-sql-commands-in-a-sql-script\/\">Separate the SQL Commands in SQL script.<br \/>\n<\/a><\/li>\n<li>SQL modify and rebuild, SQL refactor.\n<ul>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/deconstruct-modify-rebuild-an-sql-statementjava-version\/\">Deconstruct, Modify, Rebuild an SQL statement(Java version)<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/general-sql-parser-overview\/deconstruct-modify-rebuild-an-sql-statementjava-version-part-2\/\">Deconstruct, Modify, Rebuild an SQL statement(Java version, part 2, use low level APIs)<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/add-remove-and-modify-condition-in-where-clause-net-version\/\">Add, remove and modify condition in where clause(.NET version)<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/remove-sql-variables-in-where-clause-without-broken-condition-expression\/\">Remove SQL\/user defined variables in where clause without broken condition expression.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/build-various-sql-elements-from-scratch\/\">Build various SQL elements from scratch.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/analyze-2-select-statements-then-merge-into-one-statement\/\">Analyze 2 select statements, then merge into one statement.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/replace-constant-in-sql-with-sql-variables\/\">Replace constant in query with SQL variables.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/rename-table-names-in-sql-script\/\">Rename table names in SQL script.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/rewrite-oracle-propriety-joins-to-ansi-sql-compliant-joins\/\">Rewrite Oracle proprietary joins to ANSI SQL compliant joins.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/rewrite-sql-server-propriety-joins-to-ansi-sql-compliant-joins\/\">Rewrite SQL Server proprietary joins to ANSI SQL compliant joins.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/oracle-sql-query-rewrite\/\">Oracle SQL Query rewrite<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/remove-duplicated-parenthesis-in-sql-statement\/\">Remove duplicated parenthesis in SQL statement<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/generate-internal-query-parse-tree-in-xml-for-further-processing\/\">Generate internal query parse tree in xml output for further processing.<br \/>\n<\/a><\/li>\n<li>In-depth analysis of SQL script.\n<ul>\n<li>Decoding\/Analyze SQL grammar\n<ul>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/decoding-sql-grammar-select-statement\/\">Select SQL Statement<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/decoding-sql-grammar-select-sql-statement-with-union-intersect-and-except-set-operators\/\">Select SQL Statement with UNION, INTERSECT, and EXCEPT set operators<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/get-columns-in-select-list\/\">Get columns in select list<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/decoding-sql-grammar-%E2%80%94-insert-statement\/\">Insert SQL Statement<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/decoding-sql-grammar-%E2%80%94-update-statement\/\">Update SQL Statement<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/decoding-sql-grammar-%E2%80%94-delete-statement\/\">Delete SQL Statement<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/analyzing-ddl-statement\/\">Create\/Alter Table SQL Statement<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/analyze-oracle-plsql-procedure\/\">Oracle PLSQL Procedure<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/how-to-access-view-alias-in-create-view-statement-via-sql-parser\/\">Create view Statement<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/visit-sql-statement-recursively\/\">Visit SQL statement recursively.<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/parsing-affected-db-objects-net-version\/\">Parsing affected db objects (.NET version)<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/parsing-affected-db-objectsjava-version\/\">Parsing affected db objects (Java version)<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/find-all-variables-in-sql-script\/\">Find all variables in SQL script.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/find-duplicated-variables-in-sql-server-script\/\">Find duplicated variables in SQL Server script.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/sql-expression-parse-tree-traversal-in-preorderinorderpostorder\/\">SQL expression parse tree traversal in preorder\/inorder\/postorder.<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/analyzing-ddl-statement\/\">Analyze DDL statement<\/a><\/li>\n<li><a href=\"http:\/\/www.sqlparser.com\/features\/crud-reportor.php\">CRUD Reportor<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/parse-the-values-and-field-names-in-where-clause\/\">Parse the values and field names in where clause<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/column-impact-analysis\/\">Column impact analysis<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/how-to-get-tablecolumn-relation-by-analyzing-sql-join-condition\/\">How to get table\/column relation by analyzing sql join condition<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/table-and-column-relations-in-sql-script-files\/\">Table and column relations in SQL script files<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/sql-server-stored-procedure-analysis-tool\/\">SQL Server stored procedure analysis tool<br \/>\n<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/scan-sql-stored-proceduresudfsviews-return-the-table-name-with-columns\/\">Scan SQL stored procedures\/udfs\/views, return the table name with columns<br \/>\n<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/translate-sql-query-between-different-databases\/\">Translate SQL query between different databases.<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/anti-sql-injection-tool\/\">SQL Injection Tool<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/sorting-views-script-by-dependency\/\">Sorting Views Script by Dependency<\/a><\/li>\n<li><a href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/get-all-the-variables-in-an-oracle-package-procedure-or-function\/\">Get all the variables in an Oracle Package, Procedure or Function<\/a><\/li>\n<\/ul>\n<p>All these demos shipped together with general sql parser library.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We collect all kinds of examples in this page to illustrate how to use general sql parser, help you to make better use of this library. Some of those examples were requested by our customers, we publish those examples here too. If you need any examples that can&#8217;t find here, feel free to contact us to request a demo. Benchmark of General SQL Parser Add SQL format\/beautify feature in your own program in 5 minutes, 10 lines code with more than 80 format options. User customized color of formatted SQL element in RTF and HTML. Vendor-specific offline syntax check. Fetch\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":5}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Parser library for .NET, Java, ASP, JSP and J2EE application<\/title>\n<meta name=\"description\" content=\"SQL Parser library for .NET, Java, ASP, JSP and J2EE application\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Parser library for .NET, Java, ASP, JSP and J2EE application\" \/>\n<meta property=\"og:description\" content=\"SQL Parser library for .NET, Java, ASP, JSP and J2EE application\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL and Data Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-12T15:47:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#organization\",\"name\":\"SQL and Data Blog\",\"url\":\"https:\/\/www.dpriver.com\/blog\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png\",\"contentUrl\":\"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png\",\"width\":251,\"height\":72,\"caption\":\"SQL and Data Blog\"},\"image\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#website\",\"url\":\"https:\/\/www.dpriver.com\/blog\/\",\"name\":\"SQL and Data Blog\",\"description\":\"SQL related blog for database professional\",\"publisher\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dpriver.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/\",\"url\":\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/\",\"name\":\"SQL Parser library for .NET, Java, ASP, JSP and J2EE application\",\"isPartOf\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/#website\"},\"datePublished\":\"2010-07-16T08:28:23+00:00\",\"dateModified\":\"2023-12-12T15:47:14+00:00\",\"description\":\"SQL Parser library for .NET, Java, ASP, JSP and J2EE application\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dpriver.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List of demos illustrate how to use general sql parser\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Parser library for .NET, Java, ASP, JSP and J2EE application","description":"SQL Parser library for .NET, Java, ASP, JSP and J2EE application","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/","og_locale":"en_US","og_type":"article","og_title":"SQL Parser library for .NET, Java, ASP, JSP and J2EE application","og_description":"SQL Parser library for .NET, Java, ASP, JSP and J2EE application","og_url":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/","og_site_name":"SQL and Data Blog","article_modified_time":"2023-12-12T15:47:14+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.dpriver.com\/blog\/#organization","name":"SQL and Data Blog","url":"https:\/\/www.dpriver.com\/blog\/","sameAs":[],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png","contentUrl":"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png","width":251,"height":72,"caption":"SQL and Data Blog"},"image":{"@id":"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.dpriver.com\/blog\/#website","url":"https:\/\/www.dpriver.com\/blog\/","name":"SQL and Data Blog","description":"SQL related blog for database professional","publisher":{"@id":"https:\/\/www.dpriver.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dpriver.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/","url":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/","name":"SQL Parser library for .NET, Java, ASP, JSP and J2EE application","isPartOf":{"@id":"https:\/\/www.dpriver.com\/blog\/#website"},"datePublished":"2010-07-16T08:28:23+00:00","dateModified":"2023-12-12T15:47:14+00:00","description":"SQL Parser library for .NET, Java, ASP, JSP and J2EE application","breadcrumb":{"@id":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dpriver.com\/blog\/"},{"@type":"ListItem","position":2,"name":"List of demos illustrate how to use general sql parser"}]}]}},"_links":{"self":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/pages\/235"}],"collection":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":73,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/pages\/235\/revisions"}],"predecessor-version":[{"id":2961,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/pages\/235\/revisions\/2961"}],"wp:attachment":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/media?parent=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}