quite a few.
ODBCYes. NET Framework1.1New features can be used for other types of databasesODBC.
Therefore, the above two connection methods are enhancedSPLMore powerful support for multiple databases.
SPL3.0In the previous version2.0Is partially modified.BUGAnd added some new features.
SPL3.0RevisedBUG:
1.PairOracleAn error is reported when the database compares dates.OracleThe da
--right--Execution8, and the database is established. The next step is to create a database context instance and manipulate the data Object! Summary:Using database precedence and model precedence does not require the developer to establish the class and database context corresponding to the tables in the
1,Database backup TypesAccording to the database size backup, there are four types, respectively applied to different occasions, the following brief introduction:1.1Full BackupThis is the way most people use it to back up the entire database, including all database objects,
SQLite is especially convenient for storing mobile phone data, but I found some problems during usage:
Data Type:
Case Insensitive
Text Text
Numeric Value
Integer Integer
Real Decimal
None No type
The above data type is correct.
1. However, if you use other data types such as varchar to create a table, an error occurs. You cannot create a table.
2. If you have used some SQLite table creation tools to create tables, including v
Underlying data type
Java type
SQL type
int or Java.lang.Integer
INTEGER
Long or Java.lang.Long
BIGINT
Short or Java.lang.Short
SMALLINT
float or java.lang.Float
FLOAT
Double or java.lang.Double
DOUBLE
Java.math.BigDecimal
NUMERIC
Java.lang.String
VARCHAR
byte or Java.lang.Byte
TINYINT
Boolean or Java.lang.Boolean
Use Java to access images and other types of files in the MySQL database1. Notes
1. When the database field isBlobType, must usePreparedStatementInSetBinaryStream (int, InputStream, int)Method;2. When the database field isLongblobType, must usePreparedStatementInSetBinaryStream (int, InputStream, long)Method.Otherwise, an error such as the question is thrown:Exce
Tags: and time Retrieve SQL database pos type automatic datatime readabilityDatetimeUsed when you need a value that contains both date and time information. MySQL retrieves and displays the datetime value in ' yyyy-mm-dd HH:MM:SS ' format, supported by ' 1000-01-01 00:00:00 ' to ' 9999-12-31 23:59:59 '. 8 bytes of storage.DATEWhen you need only a date value, there is no time part. MySQL retrieves and displays the date value in ' YYYY-MM-DD ' format, s
Label:--Query database allSELECT (case if A.colorder=1 then d.name else null end) Table name,A.colorder field ordinal, a.name field name,IsNull (G.[value], ") as [description]From Syscolumns ALeft join Systypes B on A.xtype=b.xusertypeINNER JOIN sysobjects D on a.id=d.id and d.xtype= ' U ' and d.nameLeft join syscomments E on a.cdefault=e.idLeft joins Sys.extended_properties G on a.id=g.major_id and a.colid=g.minor_idLeft join Sys.extended_properties
(' 1-2-31 ')--Accurate acquisition of timeSelect Sysdatetime () --Data conversion, function conversion--castSelect CAST (123 as varchar (20))-value type converted to stringSelect CAST (1.23 as int)--decimal type converted to intSelect CAST (123 as Decimal (18,2))--int type converted to decimalSelect CAST (' 1.23 ' as Decimal (18,2))--Convert string type to decimalSelect CAST (' 12.3 ' as int)--String to int --convert--Front write type, behind write original data, with cast oppositeSelect CONVE
Tags: Store price har MySQL enumeration oat mysq text DetailWhether it is in the small, free database space or large e-commerce site, reasonable design table structure, make full use of space is very necessary. This requires that we have a good understanding of the common data types of the database system. Below I will write a little bit of my experience to share
Several types of database fields that are easy to remember and confusing are always incorrect. Here, take notes:
A Chinese Character occupies two bytes.Char (n) contains n characters, n/2 Chinese characters (up to 4000 Chinese characters)N must be a value between 1 and 8,000. The storage size is n Bytes.Nchar (n) contains n characters and n Chinese characters (up to 4000 Chinese characters can be entered)T
Third, indexIn the previous chapter we learned to use explain to generate a query execution plan (QEP) to find the problem with the statement. Of the results returned by explain, three are index-related (possible key, key, extra), and the visible index has a prominent position in improving query efficiency.In this chapter, we will explain in all directions how to use the index to optimize our database.1. Role of the IndexThe principle of indexing is t
SQL script:SELECTTableName= Case whenA.colorder=1 ThenD.nameElse "' End,---table nameTableshowsthat= Case whenA.colorder=1 Then IsNull(F.value,"')Else "' End,---Table DescriptionTheserialnumberfield=A.colorder,---Field ordinalFieldName=A.name,---field nameIdentification= Case when ColumnProperty(A.id,a.name,'isidentity')=1 Then '√'Else "' End, PrimaryKey= Case when exists(SELECT 1 fromsysobjectswhereXtype='PK' andNameinch (SELECTName fromsysinde
Number of records in table: 1578463
Select COUNT (*) from Reorder_guideline; Count---------1578463 (1 Row Records) 2. three statements creating tables CREATE TABLE: (1) most commonly used (23171.485ms) A1stream_db=> CREATE table reorder_guideline_2 as table reorder_guideline; Time: 23171.485 ms (2) with unlogged logo (1734.085ms) Create unlogged table reorder_guideline_2 as table reorder_guideline; Time: 1734.085 ms (3) temporary table with temp ID (1666.934ms) Create temp table reorder_gu
) value.user_pass– user password, varchar (64) value, which is an encrypted result. It seems to be using an irreversible MD5 algorithm.user_nicename– user nickname, varchar (50) value.user_email– user Email address, varchar (100) value.user_url– user URL, varchar (100) value.user_registered– User Registration time, datetime value.user_level– for grade, int (2) value, can be a number between 0-10, different levels have different operation rights to WP.user_activation_key– user activation code, un
1000000.00, beyond the 6-bit integer range.2.3 Minimum value that can be savedThe range of negative numbers is symmetric with the positive range, so the minimum value is -999999.99.3 SummaryNumber (8,2) represents a range of numbers [ -999999.99,999999.99]. Determines whether a given number can be rounded before this range, and then the number of decimal parts is then compared. Judgment steps:
(1) rounding the 3rd decimal place and obtaining a number with 2 decimal places;
(2) Det
DB2. The latest release of the new DB2 6.1, management and tuning tools for greater excellence and ease of use. The DB2 can be run on an Intel architecture or on an IBM s/390 mainframe computer. If your industry is particularly praised for IBM machines, it is recommended that you study IBM DB2. There are two versions of DB2: Workgroup Edition and Enterprise Edition. The Workgroup Edition is $999 per server, plus $249 per concurrent user. And the Enterprise Edition is $12500 per CPU, unlimited c
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.