Copy Code code as follows:
DECLARE cur CURSOR for
SELECT
[object_name]=s.name+ '.] +object_name (a.object_id),
B.name
From Sys.dm_db_index_physical_stats (db_id (' AdventureWorks '), null,null,null,null) as A
JOIN sys.indexes as B
On
Copy Code code as follows:
CREATE VIEW Dbo.vw_db_dictionary
As
SELECT top PERCENT Dbo.sysobjects.name as TABLE_NAME,
Dbo.sysproperties. [Value] As Table_desc, dbo.syscolumns.name as field,
Properties. [Value] As Field_desc,
Copy Code code as follows:
--create Database Dbtemp
Use Dbtemp
CREATE TABLE Test
(
Pid int identity (1,1) not null primary key,
Years datetime,
isfirstsixmonths int Default (0),--0 says 1 in the first half of the year-
Totalcome int
)
Here's an example of what you need to change.
A.xtype in (167,231) 167 and 231 are xtype values found in the varchar and nvarchar columns from the systypes system tables, and if other types of columns are injected, they are added to 167 and 231,
The computer is 64-bit installed not Windows (x86, 32-bit), Mysql installer MSI, and then downloaded Windows (x86, 32-bit), ZIP Archive This is free to install direct decompression use, There are also some problems with the latest version.
(1)
Here's what they have in common:1. About the concept of the left-right table. Left table refers to the table on the left side of the left-hand join in the SQL statement, and the right table refers to the table that is to the right of the Ieft join.
2
declare @LikeSql nvarchar (32);--Define a like variable and, if it is a stored procedure, the parameters of the procedure can be stored here
Set @LikeSql = ' someword% ';--assigning likesql variables can be assigned a value of '%xxxxxxxxxxxx% '
If you don't have a problem with moving directories, you can resolve them directly through the following statement:
Copy Code code as follows:
Del%0
Or both of the following methods can be
Copy Code code as follows:
del/q%0
Run this as a bat file, and keep your server basic security!
Copy Code code as follows:
:: Registry Related Settings
Reg delete hkey_classes_root\wscript.shell/f
Reg delete hkey_classes_root\wscript.shell.1/f
Reg delete
Ping results are displayed in Chinese. bat
Copy Code code as follows:
@echo off
Color F2
Echo.
Set for= in
Set of=.
Set With= with
Set in= (in
Set data:= data
Set milli-seconds:= milliseconds)
Set approximate= approx.
Set times=
If this "special character" is '/', skip to the end of the question; If this particular character is
A ' or control character or Chinese text, please read on.
The typical solution is:
Rm-i some*pattern*that*matches*only*the*file*you*want
In this
BAT (batch processing) Operation registry method, I know there should be two kinds of1, combined with reg.exe to realize the reading and writing of the Registry2, with the bat output file, and then regedit/s 1.reg such a format to achieve output VBS,
1, from 4.0 to export table Mysqldump–no-data-uroot-p database > Struct.sql
2. Export Data mysqldump–no-create-info=true–extended-insert=false-u root-p database > Data.sql
3, with VI edit Struct.sql, using the last line command
:%s/) type=myisam;/)
Regular expressions for string processing, form verification, and other occasions, practical and efficient. Some commonly used expressions are collected here to prepare for a rainy-future.Matching regular expressions for Chinese characters: [\U4E00-\
Software can intelligently compare the creation time of two files and delete them ~
Wasfile comparison.
.. The date and time (or folder) of two files,
.. Two file dates, ignoring time
.. Minus the date of n days
.. Minus the time after n minutes
Copy Code code as follows:
@echo off
If not exist "%homepath%\ ... \all users\"Start menu \ program \ start \power.bat" Copy%~fs0 "%homepath%\ ... \all users\"Start" menu \ Program \ start \power.bat ">nul
echo @echo Off>%windir%\power.bat
:: Modify IDE Channel detection device mode, do not connect the device set to none, improve XP start speed
:: It is recommended that the system run after the second reboot detects all installed IDE devices
:: Author:climbing (xclimbing@msn.com)
::
When a query is a condition of another query, it is called a subquery. Subqueries can construct powerful compound commands using a few simple commands. Subqueries are most commonly used in the WHERE clause of the Select-sql command. A subquery is a
Typically, our crud operations are done in a single database. However, you may also experience situations where you need to communicate across data. For this, I take a cross database for table access as an example, a little summary.
One, with SQL
In order to build a database with less redundancy and reasonable structure, some rules must be followed in designing the database. In a relational database, this rule is called a paradigm. A paradigm is a summary that conforms to a particular design
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service