A useful general paging storage process can be used in any development. You only need to make a small change. If you need it, you can refer to this instance.
A useful general paging storage process can be used in any development. You only need to
Oracle group summary statistics function grouping, oraclegrouping
Two days ago, a colleague asked an oracle database to use grouping to complete a statistical report function. This function is pretty cool. The development grouping report can be done
SQL Server paging query stored procedures used in the project.
Stored Procedure]
Create PROCEDURE prcPageResult-- Get data on a page --
@ CurrPage int = 1, -- current page number (that is, Top currPage)
@ ShowColumn varchar (2000) = '*', -- the
The has been used since the start of the project. The original of this stored procedure (SORRY, forget the name), write this section of the SQL code is very good, I on this basis, according to my habits and thinking mode, adjusted the code, only to
Database CRUD OperationsDelete Table drop tables nameSecond, modify the tableALTER TABLE name adds column name data type (add indicates a column added)ALTER TABLE name drop column name (column = Drop for drop means delete)Third, delete the
MySQL common command one, user managementWhen the IP address is a paragraph, you can use the wildcard%, i.e. ' 192.1638.1.% 'Create userCreate user ' username ' @ ' IP address ' identfied by ' password ';Delete UserDrop user ' username ' @ ' IP
A, conditional judgment whereSELECT * FROM table where ID > 1 and name! = ' Alex ' and num = 12;select * FROM table where ID between 5 and 16;select * FROM table where ID in (11,22,33) select * FROM table where ID not in (11,22,33) select * FROM
I. Introduction to the DatabaseWhat is a database?Data warehouses, such as: In an instance of ATM we create a DB directory called a databaseWhat is MySQL, Oracle, SQLite, Access, MS SQL Server, and more?They are database software, the main function
About MySQL1. What is a database?A database is a warehouse that organizes, stores, and manages data according to its structure, which is generated more than more than 60 years ago, with the development of information technology and markets,
I. Introduction to Pagination1. Paging is a technique that presents a part of the data in a database to the user. Why did you do it? Because in general the user in the query when the data is very much, when a page can not display all the data, we
About MySQL1. What is a database?A database is a warehouse that organizes, stores, and manages data according to its structure, which is generated more than 60 years ago, with the development of information technology and markets, especially after
Operations on the database in SQL Server:To delete a table:DROP table NameTo modify a table:ALTER TABLE table name add column Add column list typeALTER TABLE table name drop column nameDeleting a databaseDrop database nameCRUD OperationsC--create
Delete Table drop tables NameSecond, modify the tablealter table name adds column name data type (addindicates a column added )alter table name drop Column name (column = drop for drop means delete )Third, delete the databaseDrop databaseIv. crud
MySQL Introduction 1, what is a database? A database is a warehouse that organizes, stores, and manages data according to its structure, which is generated more than more than 60 years ago, with the development of information technology and markets,
1 The number of selected columns to the frontALTER TABCE table name MODIFY column name and column number name type first;2 modifying column number name typesALTERTABCE Table name MODIFY Name of column name of new column;3 Modifying a data table
1. Prerequisites for using MySQL databaseA. Installing the MySQL serverB. Installing the MySQL ClientC. "Client" Connection "server Side"D. "Client" sends a command to the "server-side MySQL" Service to accept the command and perform the appropriate
SQL Server paged query stored procedure used in the project."Stored Procedures"Create PROCEDURE Prcpageresult--Get the data of a page--@currPage int = 1,--The current page number (that is, top currpage)@showColumn varchar (2000) = ' * ',--required
---------sorted by the ORDER BY statement:--1. Descending order BY column name Desc--2. Ascending order BY column name or order BY column name ASCThe--3.order by statement must always be placed at the end of the entire SQL statement.--4. Sorting by
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.