A method and apparatus for querying information
A technology for querying information and indicating information, applied in the field of querying information, it can solve problems such as low flexibility, and achieve the effect of improving flexibility and realizing dynamic generation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0072] Example 1: The user has a fixed query object, such as fields col1, col2. The format of the value of the field date in data table A is "yyyyMMdd", where y can represent the year, M can represent the month, and d can represent the day. The format of the value of the date filter item is "yyyy-MM-dd". Users can write the following SQL query statements:
[0073] select col1, col2
[0074] from A
[0075] where{date[conditions._date(number)]}
[0076] Among them, the specific part in the where clause is {date[conditions._date(number)]}. The first indication information in the specific part is number.
example 2
[0077] Example 2: The user has a fixed query object, such as fields col1, col2. The format of the value of the field date in data table A is "yyyyMMdd", and the format of the value of the date filter item is "yyyy-MM-dd". If the user wants to query the data of the previous day of the selected date, the user can write the following SQL query statement, for example:
[0078] select col1, col2
[0079] from A
[0080] where{date=[conditions._date(-1.number)]}
[0081] Wherein, the specific part in the where clause is {date=[conditions._date(-1.number)]}. The first indication information in the specific part is number, and the second indication information is -1.
example 3
[0082] Example 3: The user has a fixed query object, such as fields col1, col2. Wherein, the field month is a month field, and the value of this field is a value of numeric type. The format of the value of the field date is "yyyyMMdd", and the format of the value of the date filter item is "yyyy-MM-dd". If the user wants to query the data of the previous month of the selected date, the user can write the following SQL query statement, for example:
[0083] select col1, col2
[0084] from A
[0085] where{month=[conditions._date(-30.month.number)]}
[0086] Wherein, the specific part in the where clause is {month=[conditions._date(-30.month.number)]}. The first indication information in the specific part is number, the second indication information is -30, and the third indication information is month.
[0087] In some optional implementation manners of this embodiment, after the execution subject obtains the SQL template, it can find out the target specific part in the SQ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com