Method and apparatus for querying information
A technology for querying information and indicating information, applied in the field of querying information, can solve problems such as low flexibility, 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 fixed query objects, 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] where 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 fixed query objects, 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 fixed query objects, such as fields col1, col2. Among them, 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 is "yyyy-MM-dd". If the user wants to query the data of the previous month of the month in which the selected date is located, 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] Among them, 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 acquiring the SQL template, the above-mentioned execution body can fi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


