随笔 - 741  文章 - 0  评论 - 260  阅读 - 416万

随笔分类 -  [004] 数据库

1 2 下一页
MYSQL安装使用
摘要:1, 绿色版本的客户端,这个直接解包后,设定环境变量即可,我用的是mysql-5.5.54-win32 2,mysql服务器mysql-installer-community-5.7.29.0.msi 服务器安装问题 1) 安装目录, 默认的安装目录是安装在C盘,安装向导好像无法设定其他盘。 我是安 阅读全文
posted @ 2020-08-20 15:28 莫水千流 阅读(198) 评论(0) 推荐(0) 编辑
mysql-将多个SUM查询合并为一个结果
摘要:标签:multiple-tables sum sql mysql sql-server 所以…我们有3个与比赛有关的表格,其中DB跟踪他们为每个比赛获得的积分.竞赛1、2和3.每当用户获得成就时,就会为该用户创建一个新行,并附加得分.因此,为了计算用户获得的所有积分,我使用选择总和 SELECT u 阅读全文
posted @ 2020-08-19 17:48 莫水千流 阅读(3583) 评论(1) 推荐(0) 编辑
mysql 5.7安装过程
摘要:一:简介 MySQL是一种开放源代码的关系型数据库管理系统(RDBMS),使用最常用的数据库管理语言--结构化查询语言(SQL)进行数据库管理。 MySQL是开放源代码的,因此任何人都可以在General Public License的许可下下载并根据个性化的需要对其进行修改。 MySQL因为其速度 阅读全文
posted @ 2020-08-18 19:35 莫水千流 阅读(375) 评论(0) 推荐(0) 编辑
left join on 和where条件的放置
摘要:select * fromtd left join (select case_id as sup_case_id , count(*) supervise_number from td_kcdc_case_sup_info group by case_id ) supon sup.sup_case... 阅读全文
posted @ 2015-10-27 09:53 莫水千流 阅读(81724) 评论(2) 推荐(4) 编辑
sql中用JOIN USING 简化JOIN ON
摘要:Mysql 中联接SQL语句中,ON子句的语法格式为:table1.column_name = table2.column_name。当模式设计对联接表的列采用了相同的命名样式时,就可以使用 USING 语法来简化 ON 语法,格式为:USING(column_name)。例如:[sql] view... 阅读全文
posted @ 2015-10-19 14:51 莫水千流 阅读(2379) 评论(0) 推荐(0) 编辑
How do I list all tables/indices contained in an SQLite database
摘要:How do I list all tables/indices contained in an SQLite databaseIf you are running the sqlite3 command-line access program you can type ".tables" to g... 阅读全文
posted @ 2014-12-28 13:29 莫水千流 阅读(649) 评论(0) 推荐(1) 编辑
Microsoft Visual Studio 2010中文版编译SQLlite3.7.0版
摘要:作为一名教师,没有具体项目的开发,却喜欢尝鲜,不经意间开始追星了。换了Win7,安装了Microsoft Visual Studio 2010中文版,7月22日SQLite发布了3.7.0版。当然想试试了。一、获取源代码下载:http://www.sqlite.org/sqlite-amalgama... 阅读全文
posted @ 2014-10-30 05:21 莫水千流 阅读(401) 评论(1) 推荐(0) 编辑
sqlite3使用简介(内含解决sqlite内存的方法)
摘要:一.使用流程要使用sqlite,需要从sqlite官网下载到三个文件,分别为sqlite3.lib,sqlite3.dll,sqlite3.h,然后再在自己的工程中配置好头文件和库文件,同时将dll文件放到当前目录下,就完成配置可以使用sqlite了。使用的过程根据使用的函数大致分为如下几个过程:s... 阅读全文
posted @ 2014-10-30 04:32 莫水千流 阅读(9981) 评论(0) 推荐(0) 编辑
linux 下按在sqllite
摘要:1 安装去sqlite主页http://www.sqlite.org/.跳转到下载也http://www.sqlite.org/download.html。源码下载sqlite-amalgamation-3.7.3.tar.gz我去的时候是3.7.3版现在估计升级了。进入下载目录,解压文件tar -... 阅读全文
posted @ 2014-10-29 20:05 莫水千流 阅读(717) 评论(0) 推荐(0) 编辑
SQLITE3 使用总结
摘要:2009-09-16 07:362624人阅读评论(10)收藏举报前序:Sqlite3的确很好用。小巧、速度快。但是因为非微软的产品,帮助文档总觉得不够。这些天再次研究它,又有一些收获,这里把我对sqlite3的研究列出来,以备忘记。这里要注明,我是一个跨平台专注者,并不喜欢只用windows平台。... 阅读全文
posted @ 2014-10-29 19:03 莫水千流 阅读(393) 评论(0) 推荐(0) 编辑
sqlite 二进制字段 (zz)
摘要:有时我们用数据库存储文件,需要用到二进制字段,下面列常用方法。 1.写二进制数据 sqlite3 * db; int result; char **errmsg =NULL; result = sqlite3_open("test.db", &db ); if( result != SQLITE_O... 阅读全文
posted @ 2014-05-12 17:44 莫水千流 阅读(2009) 评论(0) 推荐(0) 编辑
SQL PRIMARY KEY,SQL FOREIGN KEY
摘要:A primary key is defined as a column or a group of column that their value are always be unique. Normally, NULL value will never be allowed in this column to be part of this column’s records.EXAMPLE :Let’s say we want to create a table name Users. The PRIMARY KEY will be user_id for that table. SQL 阅读全文
posted @ 2013-09-18 14:48 莫水千流 阅读(1924) 评论(0) 推荐(0) 编辑
SQL GROUP BY
摘要:ROUP BY clause is used to associate an aggregate function with groups of rows. The SQL GROUP BY clause is used along with the SQL aggregate functions like SUM, COUNT, MAX, MIN, and AVG to provide means of grouping the result by refer to certain database table column.The SQL syntax for GROUP BY ... 阅读全文
posted @ 2013-09-18 14:10 莫水千流 阅读(268) 评论(0) 推荐(0) 编辑
SQL HAVING
摘要:The HAVING clause is used in combination with the GROUP BY clause and the SQL aggregate functions. HAVING clause allows us to call the data conditionally on the column that return from using the SQL aggregate functions.The SQL HAVING syntax is simple and looks like this:SELECT [COLUMN NAME 1] , AGG. 阅读全文
posted @ 2013-09-18 14:10 莫水千流 阅读(339) 评论(0) 推荐(0) 编辑
SQL ORDER BY
摘要:After being learn through all the displaying data syntax. It’s time to learn how to sort data by using ORDER BY.Yes it is. ORDER BY clause allows you to sort the records in your result set. This clause can only be used in SELECT statements. The ORDER BY clause sorts the result set based on the colum 阅读全文
posted @ 2013-09-18 14:08 莫水千流 阅读(733) 评论(0) 推荐(0) 编辑
SQL CREATE INDEX
摘要:n relational database, Index will be the important mechanism for boosting performance. Index is important like Index for a book that helps you quickly find the pages that you wanted to read, index on the column speeds data retrieval.CREATE INDEX Statement will look like this:CREATE [UNIQUE] INDEX [I 阅读全文
posted @ 2013-09-18 14:00 莫水千流 阅读(271) 评论(0) 推荐(0) 编辑
SQL Alias
摘要:There are two types of aliases that are used most frequently in SQL command: which is column alias and table alias.Why ALIAS? There is some reasons alias to be use when querying a SQL command.- alias in a long query can make your query easier to read and understand- alias table is use when using a s 阅读全文
posted @ 2013-09-18 13:59 莫水千流 阅读(491) 评论(0) 推荐(0) 编辑
SQL IN
摘要:here are some additional clause in the SQL language that can be used to simplify queries by decrease the use of the single Operator repeatly. One of them is IN clause.IN clause is used to simplify the queries if you want to select data that meet a large number of options. That means IN function help 阅读全文
posted @ 2013-09-18 13:58 莫水千流 阅读(814) 评论(0) 推荐(0) 编辑
sqlite3使用简介
摘要:一.使用流程要使用sqlite,需要从sqlite官网下载到三个文件,分别为sqlite3.lib,sqlite3.dll,sqlite3.h,然后再在自己的工程中配置好头文件和库文件,同时将dll文件放到当前目录下,就完成配置可以使用sqlite了。使用的过程根据使用的函数大致分为如下几个过程:sqlite3_open()sqlite3_prepare()sqlite3_step()sqlite3_column()sqlite3_finalize()sqlite3_close()这几个过程是概念上的说法,而不完全是程序运行的过程,如sqlite3_column()表示的是对查询获得一行里面的 阅读全文
posted @ 2013-09-18 10:09 莫水千流 阅读(490) 评论(0) 推荐(0) 编辑
SQL INTERSECT
摘要:SQL INTERSECT is query that allows you to select related information from 2 tables, this is combine 2 SELECT statement into 1 and display it out.INTERSECT produces rows that appear in both queries.that means INTERSECT command acts as an AND operator (value is selected only if it appears in both stat 阅读全文
posted @ 2013-09-18 09:04 莫水千流 阅读(804) 评论(0) 推荐(0) 编辑

1 2 下一页
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示