Method for generating complex structured query language (SQL) statement
A statement and complex technology, applied in the field of complex SQL statement generation, can solve problems such as failure to generate
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0040] Assuming that the following SQL keywords are specified as {select, join, join, group by, where, intersect}, the SQL statement needs to be generated, and the generation method is as follows:
[0041] A. Build the basic SQL statement as follows:
[0042] select *from t1;(1)
[0043] select id from t1 where id=1; (2)
[0044] select distinct id, name from t1 where id>=1 order by id; (3)
[0045] select count(id), sum(id), avg(id), max(id), min(id) from t1 group by name having
[0046] count(id)>0 order by id; (4)
[0047] select * from t1, t2; (5)
[0048] select * from t1 natural join t2 on t1.id = t2.id; (6)
[0049] select * from t1 join t2 using(id);(7)
[0050] select * from t1 left outer join t2 using(id);(8)
[0051] select * from t1 right outer join t2 using(id);(9)
[0052] select * from t1 where id = (select id from t1 where id = 1); (10)
[0053] B. Construct the SQL keyword list KeyWordsList and the SQL statement list SQLList according to the input SQL...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
