SQL obtains all user names, database names, all table names, all field names, and field types. 2009 - 03 - 14 10 : 48 1 . Get all user names: Select Name From Sysusers Where Status = ' 2 ' And Islogin = ' 1 ' Islogin
PHP solve the problem of garbled Chinese names of the file downloaded by the browser-compatible with most browsers functionsendFile ($ serverPath, $ filename, $ charsetUTF-8, $ mimeTypeapplicationoctet-stream) {file name garbled problem if (preg_match (MSIE, $ PHP solves the problem of garbled Chinese names of downloaded files in
PHP solve the problem of garbled Chinese names of the file downloaded by the browser-compatible with most browsers functionsendFile ($ serverPath, $ filename, $ charsetUTF-8, $ mimeTypeapplicationoctet-stream) {file name garbled problem if (preg_match (MSIE, $ _ ser php solves the problem of garbled Chinese names of downloaded files in
How to solve the Chinese garbled characters in the file name downloaded from PHP across browsers. Solution to Chinese garbled characters in file names downloaded from different browsers in PHP this article mainly introduces how to solve the problem of Chinese garbled characters in file names downloaded from different
= Urlencoder.encode (FileName,"UTF8");
}Else if (Stringutils.contains (useragent, "Mozilla")) {//google, Firefox browser
Finalfilename = New String (Filename.getbytes (), "iso8859-1");
}else{
Finalfilename = Urlencoder.encode (FileName,"UTF8"); Other browsers
}
Response.setheader ("content-disposition", "attachment; Filename=\ "" + finalfilename + "\" "); //Set up here to let the browser pop up the download prompt instead of openin
The encoding format that the browser can correctly recognize. As long as the corresponding Content-Disposition is set according to this encoding, there should be no garbled Chinese file names. First, the Content-Disposition value can have the following encoding formats: 1. urlencode: Conte... SyntaxHighligh
The encoding format that the browser can correctly recognize. As long as the corresponding Content-Disposition is set according to this encoding,
The encoding format that the browser can correctly recognize. As long as the corresponding Content-Disposition is set according to this encoding, there should be no garbled Chinese file names.First, the Content-Disposition value can have the following encoding formats:1. urlencode:
Content-Disposition: attachment; filename = "struts2.0% E4 % B8 % AD % E6 % 96% E6 % 87% E7 % A8 % 8B. chm"
2. Base64 encoding:
Content-Disposition: attachment; filename = "=? UTF8? B? C3RydXRzMi4w5Lit5paH5pWZ56iLLmNo
--Get Stored Procedure creation statement Select O.xtype,o.name,cm.text from syscomments cm inner join sysobjects o on o.id=cm.id where xtype = ' P ' order By o.xtype,o.name,cm.text--get view path creation statement Select O.xtype,o.name,cm.text from syscomments cm inner join sysobjects o on o.id=cm . ID where xtype = ' V ' ORDER by o.xtype,o.name,cm.text--queries all table names, field names,
operation wordsA:union operatorThe UNION operator derives a result table by combining the other two result tables (for example, TABLE1 and TABLE2) and eliminating any duplicate rows in the table. When all is used with the Union (that is, union ALL), duplicate rows are not eliminated. In both cases, each row of the derived table is either from TABLE1 or from TABLE2.B:except operatorThe EXCEPT operator derives a result table by including all rows in TABLE1 but not in TABLE2 and eliminating all du
--oracle See all of the user's table names, table comments, field names, field comments, empty, field type SELECT DISTINCT table_column.*, table_nallable. Data_type, table_nallable. NULLABLE from (SELECT DISTINCT Utc.table_name table_name, utc.comments table_comments, Ucc.column_name column_name, ucc.comments column_comments from User_tab _comments UTC, User_col_comments UCC where utc
Get table names and comments:Select Relname as Tabname,cast (obj_description (Relfilenode, ' pg_class ') as varchar) as comment from Pg_class Cwhere relkind = ' R ' and Relname not-like ' pg_% ' and relname not-like ' sql_% ' ORDER by RelnameFilter out the Sub-table:Conditional and relchecks=0 can beGets the field name, type, comment, whether it is empty:SELECT col_description (A.attrelid,a.attnum) as Comment,format_type (A.atttypid,a.atttypmod) as ty
name is stored in the symbol table and the index in the symbol table is mapped to the actual physical space (Address). When this variable is called, you can find the corresponding address and set the value to the symbol table.
The above analyzes the variable names of basic data types (such as int and char. In addition to variable names, C also includes function
Select A.name as table name, b.name as column name, c.name as type, b.max_length as Byte count, b.precision As Integer, B.scale as decimal from Sys.tables a INNER JOIN Sys.columns B on a.object_id=b.object_id inner join Sys. Types C on c.user_type_id=b.user_type_idThis article is from the "IT" blog, so be sure to keep this source http://8577754.blog.51cto.com/8567754/1553205How to use a statement in an SQL query to query the column
applies to modifyingALTER TABLE ' table_name ' change ' column_name ' column_name ' type (longth) UNSIGNED null DEFAULT null COMMENT ' comment '
7. Adjust the order of the fields:ALTER TABLE table nameChange field name new field FirstName type default after field name (after which field is skipped)Example:
The code is as follows
Copy Code
ALTER TABLE appstore_souapp_app_androidmarket;Change getpricecurrency getpricecurrency varchar (+) default n
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.