亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? faq.tcl

?? sqlite庫
?? TCL
?? 第 1 頁 / 共 2 頁
字號:
## Run this script to generated a faq.html output file#set rcsid {$Id: faq.tcl,v 1.36 2006/04/05 01:02:08 drh Exp $}source common.tclheader {SQLite Frequently Asked Questions</title>}set cnt 1proc faq {question answer} {  set ::faq($::cnt) [list [string trim $question] [string trim $answer]]  incr ::cnt}############## Enter questions and answers here.faq {  How do I create an AUTOINCREMENT field.} {  <p>Short answer: A column declared INTEGER PRIMARY KEY will  autoincrement.</p>  <p>Here is the long answer:  If you declare a column of a table to be INTEGER PRIMARY KEY, then  whenever you insert a NULL  into that column of the table, the NULL is automatically converted  into an integer which is one greater than the largest value of that  column over all other rows in the table, or 1 if the table is empty.  (If the largest possible integer key, 9223372036854775807, then an  unused key value is chosen at random.)  For example, suppose you have a table like this:<blockquote><pre>CREATE TABLE t1(  a INTEGER PRIMARY KEY,  b INTEGER);</pre></blockquote>  <p>With this table, the statement</p><blockquote><pre>INSERT INTO t1 VALUES(NULL,123);</pre></blockquote>  <p>is logically equivalent to saying:</p><blockquote><pre>INSERT INTO t1 VALUES((SELECT max(a) FROM t1)+1,123);</pre></blockquote>  <p>There is a new API function named  <a href="capi3ref.html#sqlite3_last_insert_rowid">  sqlite3_last_insert_rowid()</a> which will return the integer key  for the most recent insert operation.</p>  <p>Note that the integer key is one greater than the largest  key that was in the table just prior to the insert.  The new key  will be unique over all keys currently in the table, but it might  overlap with keys that have been previously deleted from the  table.  To create keys that are unique over the lifetime of the  table, add the AUTOINCREMENT keyword to the INTEGER PRIMARY KEY  declaration.  Then the key chosen will be one more than than the  largest key that has ever existed in that table.  If the largest  possible key has previously existed in that table, then the INSERT  will fail with an SQLITE_FULL error code.</p>}faq {  What datatypes does SQLite support?} {  <p>See <a href="datatype3.html">http://www.sqlite.org/datatype3.html</a>.</p>}faq {  SQLite lets me insert a string into a database column of type integer!} {  <p>This is a feature, not a bug.  SQLite does not enforce data type  constraints.  Any data can be  inserted into any column.  You can put arbitrary length strings into  integer columns, floating point numbers in boolean columns, or dates  in character columns.  The datatype you assign to a column in the  CREATE TABLE command does not restrict what data can be put into  that column.  Every column is able to hold  an arbitrary length string.  (There is one exception: Columns of  type INTEGER PRIMARY KEY may only hold a 64-bit signed integer.  An error will result  if you try to put anything other than an integer into an  INTEGER PRIMARY KEY column.)</p>  <p>But SQLite does use the declared type of a column as a hint  that you prefer values in that format.  So, for example, if a  column is of type INTEGER and you try to insert a string into  that column, SQLite will attempt to convert the string into an  integer.  If it can, it inserts the integer instead.  If not,  it inserts the string.  This feature is sometimes  call <a href="datatype3.html#affinity">type or column affinity</a>.  </p>}faq {  Why does SQLite think that the expression '0'=='00' is TRUE?} {  <p>As of version 2.7.0, it doesn't.  See the document on  <a href="datatype3.html">datatypes in SQLite version 3</a>  for details.</p>}faq {  Why doesn't SQLite allow me to use '0' and '0.0' as the primary  key on two different rows of the same table?} {  <p>Your primary key must have a numeric type.  Change the datatype of  your primary key to TEXT and it should work.</p>  <p>Every row must have a unique primary key.  For a column with a  numeric type, SQLite thinks that <b>'0'</b> and <b>'0.0'</b> are the  same value because they compare equal to one another numerically.  (See the previous question.)  Hence the values are not unique.</p>}        faq {  My linux box is not able to read an SQLite database that was created  on my SparcStation.} {  <p>You need to upgrade your SQLite library to version 2.6.3 or later.</p>  <p>The x86 processor on your linux box is little-endian (meaning that  the least significant byte of integers comes first) but the Sparc is  big-endian (the most significant bytes comes first).  SQLite databases  created on a little-endian architecture cannot be on a big-endian  machine by version 2.6.2 or earlier of SQLite.  Beginning with  version 2.6.3, SQLite should be able to read and write database files  regardless of byte order of the machine on which the file was created.</p>}faq {  Can multiple applications or multiple instances of the same  application access a single database file at the same time?} {  <p>Multiple processes can have the same database open at the same  time.  Multiple processes can be doing a SELECT  at the same time.  But only one process can be making changes to  the database at any moment in time, however.</p>  <p>SQLite uses reader/writer locks to control access to the database.  (Under Win95/98/ME which lacks support for reader/writer locks, a  probabilistic simulation is used instead.)  But use caution: this locking mechanism might  not work correctly if the database file is kept on an NFS filesystem.  This is because fcntl() file locking is broken on many NFS implementations.  You should avoid putting SQLite database files on NFS if multiple  processes might try to access the file at the same time.  On Windows,  Microsoft's documentation says that locking may not work under FAT  filesystems if you are not running the Share.exe daemon.  People who  have a lot of experience with Windows tell me that file locking of  network files is very buggy and is not dependable.  If what they  say is true, sharing an SQLite database between two or more Windows  machines might cause unexpected problems.</p>  <p>We are aware of no other <i>embedded</i> SQL database engine that  supports as much concurrancy as SQLite.  SQLite allows multiple processes  to have the database file open at once, and for multiple processes to  read the database at once.  When any process wants to write, it must  lock the entire database file for the duration of its update.  But that  normally only takes a few milliseconds.  Other processes just wait on  the writer to finish then continue about their business.  Other embedded  SQL database engines typically only allow a single process to connect to  the database at once.</p>  <p>However, client/server database engines (such as PostgreSQL, MySQL,  or Oracle) usually support a higher level of concurrency and allow  multiple processes to be writing to the same database at the same time.  This is possible in a client/server database because there is always a  single well-controlled server process available to coordinate access.  If your application has a need for a lot of concurrency, then you should  consider using a client/server database.  But experience suggests that  most applications need much less concurrency than their designers imagine.  </p>  <p>When SQLite tries to access a file that is locked by another  process, the default behavior is to return SQLITE_BUSY.  You can  adjust this behavior from C code using the   <a href="capi3ref#sqlite3_busy_handler">sqlite3_busy_handler()</a> or  <a href="capi3ref#sqlite3_busy_timeout">sqlite3_busy_timeout()</a>  API functions.</p>}faq {  Is SQLite threadsafe?} {  <p>Yes.  Sometimes.  In order to be thread-safe, SQLite must be compiled  with the THREADSAFE preprocessor macro set to 1.  In the default  distribution, the windows binaries are compiled to be threadsafe but  the linux binaries are not.  If you want to change this, you'll have to  recompile.</p>  <p>"Threadsafe" in the previous paragraph means that two or more threads  can run SQLite at the same time on different "<b>sqlite3</b>" structures  returned from separate calls to   <a href="capi3ref#sqlite3_open">sqlite3_open()</a>.  It is never safe  to use the same <b>sqlite3</b> structure pointer in two  or more threads.</p>  <p>Prior to version 3.3.1,  an <b>sqlite3</b> structure could only be used in the same thread  that called <a href="capi3ref#sqlite3_open">sqlite3_open</a> to create it.  You could not open a  database in one thread then pass the handle off to another thread for  it to use.  This was due to limitations (bugs?) in many common threading  implementations such as on RedHat9.  Specifically, an fcntl() lock  created by one thread cannot be removed or modified by a different  thread on the troublesome systems.  And since SQLite uses fcntl()  locks heavily for concurrency control, serious problems arose if you   start moving database connections across threads.</p>  <p>The restriction on moving database connections across threads  was relaxed somewhat in version 3.3.1.  With that and subsequent  versions, it is safe to move a connection handle across threads  as long as the connection is not holding any fcntl() locks.  You  can safely assume that no locks are being held if no  transaction is pending and all statements have been finalized.</p>  <p>Under UNIX, you should not carry an open SQLite database across  a fork() system call into the child process.  Problems will result  if you do.</p>}faq {  How do I list all tables/indices contained in an SQLite database} {  <p>If you are running the <b>sqlite3</b> command-line access program  you can type "<b>.tables</b>" to get a list of all tables.  Or you  can type "<b>.schema</b>" to see the complete database schema including  all tables and indices.  Either of these commands can be followed by  a LIKE pattern that will restrict the tables that are displayed.</p>  <p>From within a C/C++ program (or a script using Tcl/Ruby/Perl/Python  bindings) you can get access to table and index names by doing a SELECT  on a special table named "<b>SQLITE_MASTER</b>".  Every SQLite database  has an SQLITE_MASTER table that defines the schema for the database.  The SQLITE_MASTER table looks like this:</p><blockquote><pre>CREATE TABLE sqlite_master (  type TEXT,  name TEXT,  tbl_name TEXT,  rootpage INTEGER,  sql TEXT);</pre></blockquote>  <p>For tables, the <b>type</b> field will always be <b>'table'</b> and the  <b>name</b> field will be the name of the table.  So to get a list of  all tables in the database, use the following SELECT command:</p><blockquote><pre>SELECT name FROM sqlite_masterWHERE type='table'ORDER BY name;</pre></blockquote>  <p>For indices, <b>type</b> is equal to <b>'index'</b>, <b>name</b> is the  name of the index and <b>tbl_name</b> is the name of the table to which  the index belongs.  For both tables and indices, the <b>sql</b> field is  the text of the original CREATE TABLE or CREATE INDEX statement that  created the table or index.  For automatically created indices (used

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区免费| 狠狠色丁香婷综合久久| 26uuu另类欧美| av亚洲精华国产精华精| 五月婷婷激情综合网| 精品久久久久久久久久久久包黑料| 国产精品888| 奇米一区二区三区| 国产欧美中文在线| 精品国产一区久久| 91精品中文字幕一区二区三区| 91视频.com| 99久久久久免费精品国产| 福利视频网站一区二区三区| 美美哒免费高清在线观看视频一区二区 | 色婷婷久久久亚洲一区二区三区| 午夜av电影一区| 美女国产一区二区| 亚洲伦理在线免费看| 精品国产三级电影在线观看| 91猫先生在线| 成人三级伦理片| 国产suv精品一区二区883| 日本一道高清亚洲日美韩| 亚洲欧美日韩电影| 亚洲男帅同性gay1069| 国产精品白丝在线| 亚洲久本草在线中文字幕| 国产精品久久久久久久蜜臀 | 欧美日韩一级二级| 7777精品伊人久久久大香线蕉完整版| 欧美日高清视频| 欧美老女人第四色| 精品sm在线观看| 中文字幕第一页久久| 亚洲男同1069视频| 午夜精品久久久久久久久久久| 丝袜美腿亚洲一区| 精品一区二区影视| 波多野结衣亚洲| 色噜噜久久综合| 91精品国产综合久久婷婷香蕉| 日韩欧美激情四射| 国产精品久久久久aaaa樱花| 亚洲一区二三区| 久久er99精品| 99久久精品久久久久久清纯| 欧美性猛交xxxxxx富婆| 日韩欧美久久久| 亚洲男帅同性gay1069| 午夜视频在线观看一区二区三区| 午夜国产不卡在线观看视频| 麻豆精品视频在线观看免费| 大桥未久av一区二区三区中文| 91丨九色porny丨蝌蚪| 51精品久久久久久久蜜臀| 国产日韩欧美在线一区| 午夜影院久久久| 日韩视频在线一区二区| 欧美国产一区二区| 午夜不卡在线视频| 一本一道波多野结衣一区二区| 欧美成人福利视频| 午夜精品一区二区三区电影天堂 | 欧美视频一区在线观看| 精品对白一区国产伦| 亚洲高清免费观看| 94色蜜桃网一区二区三区| 精品少妇一区二区三区在线播放| 一区二区高清在线| aaa欧美日韩| 久久女同互慰一区二区三区| 天天综合色天天综合| 国产v日产∨综合v精品视频| 欧美一区二区不卡视频| 亚洲成人av资源| 欧美在线观看一区| 亚洲精品免费电影| 国产成人综合亚洲91猫咪| 精品国产精品一区二区夜夜嗨| 午夜国产不卡在线观看视频| 在线影视一区二区三区| 亚洲精品国产无套在线观| 91小视频在线观看| 亚洲区小说区图片区qvod| 91在线视频在线| 亚洲欧美在线aaa| 91麻豆精品视频| 一区二区三区久久久| 欧美日韩一区在线观看| 亚洲国产日韩a在线播放 | 高清在线观看日韩| 国产欧美视频一区二区| 精品亚洲免费视频| 久久午夜羞羞影院免费观看| 国产精品综合一区二区| 国产精品三级久久久久三级| 丁香婷婷深情五月亚洲| 国产精品国产三级国产有无不卡 | 亚洲精品国产精品乱码不99| av亚洲精华国产精华| 中文字幕乱码久久午夜不卡| 懂色av噜噜一区二区三区av| 精品日韩在线一区| 国产精品一级在线| 国产欧美精品在线观看| 色婷婷一区二区| 日本欧美一区二区| 中文在线一区二区 | 精品国产一区二区三区忘忧草 | 激情六月婷婷综合| 中日韩免费视频中文字幕| 日本韩国一区二区| 激情综合色播激情啊| 国产精品久久久久久久久果冻传媒| 91免费观看视频在线| 青青草91视频| 最新中文字幕一区二区三区| 777欧美精品| 成人一区二区在线观看| 亚洲国产精品一区二区www在线 | 欧美精品一区二区三区蜜桃| 91香蕉视频mp4| 久久黄色级2电影| 亚洲精品你懂的| 久久久精品综合| 日韩三级免费观看| 99热在这里有精品免费| 亚洲第一av色| 亚洲欧洲无码一区二区三区| 精品美女被调教视频大全网站| 91精品91久久久中77777| 国产91丝袜在线播放| 老司机精品视频在线| 亚洲高清在线精品| 亚洲精品日日夜夜| 欧美激情一区二区三区在线| 精品国产一区a| 91精品国产欧美一区二区成人| 在线精品视频免费观看| 91美女片黄在线观看| www.在线欧美| fc2成人免费人成在线观看播放| 国内欧美视频一区二区| 久久国产剧场电影| 美国十次综合导航| 久久国产免费看| 美女任你摸久久| 五月婷婷激情综合| 一区二区视频在线| 久久久久99精品一区| 欧美肥妇bbw| 欧美日韩国产综合一区二区三区| 99视频精品在线| 91麻豆国产精品久久| 国产精品羞羞答答xxdd| 精品中文字幕一区二区| 日本一区中文字幕| 国产最新精品免费| 国产白丝网站精品污在线入口| 国产精品一区二区免费不卡| 国产成人综合亚洲91猫咪| 国产乱码精品一品二品| 国产精品99久久久久久宅男| 国内精品写真在线观看| 国产成人av一区二区| 国产一区二区日韩精品| 国产专区欧美精品| 国产高清不卡一区二区| 国产成人在线视频网站| 国产精品白丝jk黑袜喷水| 成人午夜激情影院| 99久久精品国产一区| 一本到高清视频免费精品| 色噜噜久久综合| 日韩一区二区三区精品视频| 日韩色在线观看| 国产精品拍天天在线| 香蕉影视欧美成人| 日韩精品一级中文字幕精品视频免费观看| 日韩电影一区二区三区| 精品一区二区影视| 欧洲一区二区三区在线| 国产视频一区二区在线| 亚洲影院久久精品| 国产精品影视在线| 678五月天丁香亚洲综合网| 国产精品无圣光一区二区| 肉肉av福利一精品导航| 国产在线一区二区综合免费视频| 在线视频你懂得一区| 日韩欧美一级精品久久| 亚洲制服丝袜av| 成人禁用看黄a在线| 欧美男女性生活在线直播观看| 欧美va亚洲va| 亚洲一区二区四区蜜桃| 国产乱色国产精品免费视频| 色999日韩国产欧美一区二区| 51精品视频一区二区三区|