Is there a standard XML query encoding for SQL? -
Is there a standard way of SQL encoding as XML? I mean
My 5-minute mockup, maybe Bobbins) ...
& Lt; / Table & gt; & Lt; / Select & gt; & Lt; To & gt; & Lt; Table name = "user" /> & Lt; / By & gt; & Lt; Where & gt; & Lt; Operator name = "like" & gt; & Lt; Column name = "name" /> & Lt; Price & gt; P% & lt; / Pricing & gt; & Lt; / Operator & gt; & Lt; / Where & gt; & Lt; Aggregation & gt; & Lt; GroupBy & gt; & Lt; Column name = "name" /> & Lt; / GroupBy & gt; & Lt; / Consolidation & gt; & Lt; Order & gt; & Lt; Order-> & Lt; Column name = "name" sequence = "character" /> & Lt; / Order- & gt; & Lt; / Order & gt; & Lt; / Query & gt; ... to make it easy to store, structure, and validate content (by creating a schema based on database schema) and so on.
I am unaware of any such standard. You still feel very practical, I question why you want to do this, though. I think it is an internal platform (an anti pattern) In addition, it is specifically searching for SQL again, which is a famous example of anti-pattern, at the top to close it, in XML Programming, which is widely considered a bad idea.
SQL grammar is very simple that you can create a parser for it in a short command by using the normal parser-generator tool (possibly already on some Web which are open source), it is your SQL syntax There will be a very clean way to confirm.
Comments
Post a Comment