Method, system and server for testing structured query language (SQL) statements
A detection method and server technology, applied in the computer field, can solve the problems of reducing the reliability of the database system and increasing the error rate, and achieve the effects of reducing the workload, reducing the error detection rate, and improving the reliability.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0030] see figure 1 , is the flow chart of the first embodiment of the detection method of the SQL statement of the present application:
[0031] Step 101: Pre-configure the matching rules of the SQL statement.
[0032] SQL is a database query and programming language used to access data and query, update and manage relational database system statements. The SQL statement in the embodiment of the present application is an SQL statement for operating various project databases (or business databases). Usually, the SQL statement may involve the query field "SELECT" and the condition field "WHERE" when written. The difficulty of detecting different fields in the SQL statement is different. Based on this, the embodiment of the present application can pre-configure simple matching rules and complex matching rules respectively according to needs. Among them, the simple matching rule is matched according to the regular expression, and the matching process is relatively simple. Gener...
no. 1 example
[0131] see Figure 4, which is a block diagram of the first embodiment of the detection server of the SQL statement of the present application:
[0132] The detection server includes: a preset unit 410 , an acquisition unit 420 , an analysis unit 430 and a detection unit 440 .
[0133] Wherein, the preset unit 410 is used to preconfigure the matching rules of the SQL statement;
[0134] An acquisition unit 420, configured to acquire a changed SQL file;
[0135] The parsing unit 430 is configured to parse the changed SQL file, and obtain the changed SQL statement in the changed SQL file according to the parsing result;
[0136] The detection unit 440 is configured to match the changed SQL statement with the matching rule, and judge whether the changed SQL statement is correct according to whether the changed SQL statement matches the matching rule.
no. 2 example
[0137] see Figure 5 , which is a block diagram of the second embodiment of the detection server of the SQL statement of the present application:
[0138] The detection server includes: a preset unit 510 , an acquisition unit 520 , an analysis unit 530 , a storage unit 540 , a trigger unit 550 , a detection unit 560 , a storage unit 570 and a report unit 580 .
[0139] Wherein, the preset unit 510 is used to preconfigure the matching rules of the SQL statement;
[0140] An acquisition unit 520, configured to acquire a changed SQL file;
[0141] The parsing unit 530 is configured to parse the changed SQL file, and obtain the changed SQL statement in the changed SQL file according to the parsing result;
[0142] A saving unit 540, configured to save the changed SQL statement parsed by the parsing unit 530;
[0143] The triggering unit 550 is configured to trigger the detection unit 560 to execute the operation of matching the changed SQL statement with the matching rule when ...
PUM

Abstract
Description
Claims
Application Information

- 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