[
https://issues.jboss.org/browse/TEIIDDES-1223?page=com.atlassian.jira.plu...
]
Van Halbert commented on TEIIDDES-1223:
---------------------------------------
Other templates that would be useful when creating view would be for
INSERT/UPDATE/DELETE.
Examples
--------
INSERT: INSERT INTO table_name (column1, column2, ...) VALUES (value1, value2, ...)
UPDATE:
UPDATE table_name
SET column1=value, column2=value2,...
WHERE (PK-KEY Column) = <value>
DELETE: DELETE From <Table> WHERE (PK-KEY column) = <value>
Create SQL String Template framework and dialog for use in new view
construction and SQL editing
------------------------------------------------------------------------------------------------
Key: TEIIDDES-1223
URL:
https://issues.jboss.org/browse/TEIIDDES-1223
Project: Teiid Designer
Issue Type: Sub-task
Components: Transformations
Affects Versions: 7.6
Reporter: Barry LaFond
Assignee: Mark Drilling
Fix For: 7.7
Attachments: Prototype SQL String Template dialog.bmml, Prototype SQL String
Template dialog.bmml, Prototype SQL String Template dialog.png, SQLTemplateDialog.png
Could be beneficial to expose a standard library of SQL templates that Designer knows
about and uses in our import and object creation wizards.
EXAMPLES include forms based on :
SELECT * FROM XXXX
SELECT a,b,c FROM t1, t2 WHERE t1.a = t2.b
======= Generated XML File Importer SQL ==========
SELECT
A.x AS x, A.y AS y
FROM
(EXEC MP.getTextFiles('myfile.xml')) AS f,
XMLTABLE('/topelement/secondelement' PASSING XMLPARSE(DOCUMENT f.file)
COLUMNS x string PATH '/x', y string PATH '/elem_a/elem_b')
AS A
========================
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira