select * from avg_prices
select goods_Id,goods_name,goods_sel_price,goods_buy_price from goods
select g.goods_Id,g.goods_name,g.goods_type,g.goods_sel_price,g.goods_buy_pr……继续阅读 »
10年前 (2016-02-08) 1413浏览
0个赞
本人最近在学习sql语言,在MySql数据库中建了如下几个表:
1.teacher:包括teacher_id和name字段
2.student:包括student_id和name字段
3.course:包括course_id和name字段
4.class:包括class_id和name字段
5.score:包括month,course,student_id,……继续阅读 »
10年前 (2016-02-08) 1276浏览
0个赞
本人有两个联合索引 (FA,FB,FC) (FB,FC)
在执行Where FA = “A” and FB > “B” and FB < “Z” and FC = “C” 的时候使用了哪些索引,为什么
解决方案
15
两个索引均有可能被使用,具体要看……继续阅读 »
10年前 (2016-02-08) 1166浏览
0个赞
表a:
id title
1 a
2 b
3 c
4 d
表b:
id a_id name
1 1 aa
2 1 bb
3 2 cc
4 2 dd
5 3 ee
6 1 ……继续阅读 »
10年前 (2016-02-08) 1655浏览
0个赞
本文主要介绍C#中如何搭建cefsharp开发环境,用cefsharp开发winform内嵌web应用程序。
一、使用VS中的nuget下载程序集dll或者nuget网站自行下载。
程序集下载地址在https://www.nuget.org/packages/CefSharp.WinForms/。目前版本已经更新到51.0 .可以通过nuget轻松获得所……继续阅读 »
10年前 (2016-02-08) 17400浏览 0评论
0个赞
表字段:
删除id时:Error on rename of “.\examw\#sql-2a8_1” to “.\examw\tbl_examw_test_settings_area” (errno: 150) 报错
查询外键:SELECT * FROM INFORMATION_SCHEMA.KEY_COLUM……继续阅读 »
10年前 (2016-02-08) 1234浏览
0个赞
1.从哪个版本开始有dual表呢?
2.和oracle的dual用法上有什么区别?
3.mysql的dual一般在什么清下使用?
等
解决方案
20
至少5.1已经有DUAL
You are allowed to specify DUAL as a dummy table name in situations where no tables are refe……继续阅读 »
10年前 (2016-02-08) 2805浏览
0个赞
本人使用的是mysql-5.7.1.1 的zip压缩包版本。在windows进行配置。这里遇到的问题是my.ini中的log-bin配置。
本人是这样配置的:
[mysqld]
log-bin = mysql-bin
log-bin-index = mysql-bin.index
binlog_format=mixed
server_id = 1
当然了这只……继续阅读 »
10年前 (2016-02-08) 1305浏览
0个赞
有一行数据如下:
字段A 字段B
310,311,314 312,313,314,315
现在需要用一个sql语句,把这两个字段不仅合并到字段A,还需要去掉重复的,需要的结果如下:
字段A ……继续阅读 »
10年前 (2016-02-08) 937浏览
0个赞