current location:Home > Technical Articles > Database > SQL

  • What does % mean in sql
    What does % mean in sql
    % in SQL represents a wildcard character, matching any number of characters in the string, which can appear at the beginning, middle, or end of the string, and is used for pattern matching in the LIKE clause.
    SQL 518 2024-04-28 09:06:11
  • How to solve the problem that the sqlplus command cannot be found
    How to solve the problem that the sqlplus command cannot be found
    In order to solve the problem that the SQL*Plus command cannot be found, the following steps can be taken: 1. Check the path to ensure that it is installed in the system path; 2. Set the environment variable ORACLE_HOME to point to the parent directory of the installation directory; 3. Refresh the environment to make the changes Take effect; 4. Verify whether the installation is successful; 5. Check the execution file permissions.
    SQL 692 2024-04-18 17:57:15
  • How sqlplus executes sql files
    How sqlplus executes sql files
    Use SQLPlus to execute SQL files to automate database tasks. The steps are as follows: Use the sqlplus command to connect to the database. Use the @ or START command to execute the SQL file. Use the -v option to specify runtime parameters such as bind variables. Use the -l option to redirect output to a log file.
    SQL 575 2024-04-18 17:54:14
  • How to solve garbled code in sqlplus
    How to solve garbled code in sqlplus
    SQLPlus garbled characters are caused by character set mismatch. Solution: 1. Set the NLS_LANG environment variable; 2. Use client tools that support character sets; 3. Modify the SQLPlus startup script; 4. Modify the database configuration; 5. Use JDBC connection to explicitly set the character set; ensure that the character set is set in Be consistent across databases, client tools, and code.
    SQL 1047 2024-04-18 17:52:09
  • The use and syntax of sql triggers
    The use and syntax of sql triggers
    A trigger is a type of database code that automatically executes when a specific event (insert, update, delete) occurs. The trigger syntax includes trigger name, table name, triggering time (BEFORE/AFTER) and event type (INSERT/UPDATE/DELETE). Trigger types include BEFORE and AFTER, and event types include INSERT, UPDATE, and DELETE. Triggers can be used for data integrity verification, audit logging, automated tasks, and business logic. For example, you can create a trigger to record the insertion time when a new row is inserted to ensure data consistency.
    SQL 1065 2024-04-13 14:57:16
  • Three triggering methods of sql trigger
    Three triggering methods of sql trigger
    The triggering methods of SQL triggers are: BEFORE: Triggered before data modification, used to enforce business rules. AFTER INSERT: Triggered after inserting a new row, used to add or update data to other tables. AFTER UPDATE: Triggered after updating an existing row, used to update related tables or record change history.
    SQL 1230 2024-04-13 14:54:18
  • How to import mdf file into sqlserver
    How to import mdf file into sqlserver
    The import steps are as follows: Copy the MDF file to SQL Server's data directory (usually C:\Program Files\Microsoft SQL Server\MSSQL\DATA). In SQL Server Management Studio (SSMS), open the database and select Attach. Click the Add button and select the MDF file. Confirm the database name and click the OK button.
    SQL 900 2024-04-08 11:41:28
  • How to read data in sql
    How to read data in sql
    To read data using SQL, you can use the SELECT statement, whose basic syntax is: SELECT column name FROM table name; you can specify conditions through the WHERE clause, sort the results with the ORDER BY clause, and limit the number of rows with the LIMIT clause. Advanced options include JOIN, GROUP BY, and HAVING for joining multiple tables, grouping results, and filtering results based on grouping.
    SQL 696 2024-04-02 01:09:19
  • How to read blob in sql
    How to read blob in sql
    There are four ways to read BLOB in SQL: read directly as binary data, convert to text or JSON using streaming, use SQL Server's varbinarymax type
    SQL 1121 2024-04-02 01:06:22
  • Basic usage of exists in sql
    Basic usage of exists in sql
    EXISTS is a keyword used in SQL to determine whether a subquery returns results. The return value is true or false, indicating whether the subquery has results. The basic syntax is "SELECT column1, column2", column1, column2, ... Yes The column name to be queried.
    SQL 1211 2024-01-26 15:32:46
  • distinct usage in SQL
    distinct usage in SQL
    DISTINCT in SQL is a keyword used to query unique result sets. It can be used in SELECT statements, COUNT aggregate functions and other statements. The basic syntax is "SELECT DISTINCT column1, column2", where the DISTINCT keyword is placed in the SELECT key After the word, followed by the column name or expression to be queried, separated by commas.
    SQL 2987 2024-01-26 15:14:14
  • How to use distinct in SQL
    How to use distinct in SQL
    The DISTINCT keyword in SQL is used to remove duplicate rows from query results. It can be applied to one or more columns in the SELECT statement to return a unique value combination. The usage method is "SELECT DISTINCT column1, column2, ..." The DISTINCT keyword acts on all specified columns. If multiple columns are combined to produce different results, then these rows will also be considered different and will not be deduplicated.
    SQL 2555 2024-01-25 11:52:51
  • What are the differences between database views and tables?
    What are the differences between database views and tables?
    The differences between database views and tables are: 1. A table is a physical structure used to store data in a database, while a view is just a query result set based on a table or multiple tables; 2. A table is the physical storage unit of data, and a view only provides Rules for viewing and operating table data; 3. Views provide an advanced security mechanism for the database, and tables have no security mechanism; 4. Views are abstractions of tables; 5. Views can combine multiple tables in queries, and tables can only query a single table; 6. Tables are permanent structures in the database, views are not; 7. Views can create views with the same name, but tables cannot create tables with the same name, etc.
    SQL 6204 2023-09-04 15:13:10
  • Meituan interview question: Have you ever encountered slow SQL? How was it solved?
    Meituan interview question: Have you ever encountered slow SQL? How was it solved?
    MySQL's slow query log is a log record provided by MySQL. It is used to record statements in MySQL whose query time exceeds (greater than) the set threshold (long_query_time) and records them in the slow query log.
    SQL 1649 2023-08-24 15:41:08
  • Interviewer: Are you familiar with SQL optimization? I only know 20 kinds, but there are far more...
    Interviewer: Are you familiar with SQL optimization? I only know 20 kinds, but there are far more...
    Faced with this problem, don’t be afraid. Brother Tian has prepared the following 52 SQL statement performance optimization strategies for you. If it doesn't work, just memorize a few more items, and you'll still be able to deal with your immediate needs.
    SQL 1194 2023-08-17 16:36:22

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28