ArticleDirectory
1. directly execute SQL query
2. directly execute SQL commands
Here we will introduce that the query by using LINQ to SQL is insufficient to meet the needs of specialized tasks. We can use the executequery
SQL commands for regularly deleting historical data from databases and SQL commands for historical data
Create a job,Used to regularly clear historical database data
Delete the data of the first quarter of the table before gps_comm, as
This article demonstrates how to use a Java Servlet, a JSP page, and a static Java class to construct an SQL gateway application. With this application, you can directly execute SQL commands in the browser. the browser will submit the SQL commands
SQL commands-Comparison between Chinese and English
SQL commands-Comparison between Chinese and English
SQL commands-Comparison between Chinese and English
-- Sentence skill
-- Data Operations
SELECT -- retrieve data rows and columns from database
Browser
This article demonstrates how to construct a SQL gateway application with a Java Servlet, a JSP page, and a static Java class. With this application, you can execute SQL commands directly in the browser, and the browser will submit the SQL
Server
The first thing to note is that the content of this article is not how to adjust SQL Server query performance (to write a book about this), but how to use set STATISTICS IO and set STATISTICS in the tuning of SQL Server query performance Time
It is believed that many comrades who use EF already know how to run SQL commands in EF.
I would like to summarize here, I hope you learn EF help! In the first version of EF (. NET3.5SP1), we can only convert the objectcontext.connection to
View database objects in Mysql (Summary of SQL commands)View database objects in Mysql (Summary of SQL commands)The data objects include tables, views, triggers, and so on. (To View statistics, you must enter the information_schema database)For
The first thing to note is that the content of this article is not how to adjust SQL Server query performance (to write a book about this), but how to use set STATISTICS IO and set STATISTICS in the tuning of SQL Server query performance Time these
Important SQL Commands
SELECT -Extract data from the database
Update-Updates the data in the database
Delete-deletes data from the database
INSERT INTO-inserts new data into the database
CREATE database-creating new
Errors in converting data types in SQL commandsreproduced Problem Statement:PerformSELECT * from xxx_original_20031205where msgid=62010388000012statement, SQL Server reported an error: "An error occurred while converting data type varchar to
SQL scripts are SQL statements that contain one or more SQL commands, and we can put these SQL scripts in a text file (which we call "SQL script files") and execute the SQL script file with the relevant commands. The basic steps are as follows:1.
Recently began to contact Oralce, organized a few recent SQL commands commonly used in PL1. Modify the data in the tablewrite the query statement and condition, and then add "for Update", "for Update" is to get oacle Modify permission, execute this
SQL commands-Comparison between Chinese and English-- Sentence skill-- Data OperationsSELECT -- retrieve data rows and columns from database tablesINSERT -- add new data rows to the database tableDELETE -- DELETE data rows from a database
~~~~~ Some commonly used SQL commands for SQLite ~~~~~~~~~~~
Create a database table:
Create Table if not exists
Table-Name (column-def1, column-def2)
Table-name: the name of the database table.
Column-Def: column definition of the
When phpadmin and dreamweaver test SQL commands, the question mark is displayed in Chinese. ask the php + MySql experts to solve the problem. I use wamp, apache + php + MySql uses phpadmin to tabulation for the database. in phpadmin, I have changed
Copy table structure and table data:CREATE TABLE Table_name_new as SELECT * from Table_name_oldCopy table structure:CREATE TABLE table_name_new like Table_name_oldTo copy table data:INSERT INTO k20_jdbc_tmp select * from K20_JDBC;Set to NULL field
To use the data to connect to the database first, there are several ways to connect to access, I now use OLE DB connection mode. It is divided into no password and password.No password connection text: Provider=microsoft.ace.oledb.12.0;data
Switch to Oracle User: Su-oracle, and execute under Oracle command line:Launch into Oracle:Connection database: Sqlplus/as sysdbaWindows Client Remote connection Oralce:Sqlplus Itmuser/[email PROTECTED]//192.168.14.10:1521/ORCLTest with
To know the size of each database, proceed as follows:1. Access to the INFORMATION_SCHEMA database (information on other databases)Use INFORMATION_SCHEMA;2, query the size of all data:Select Concat (Round (sum (data_length/1024/1024), 2), ' MB ') as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.