我想知道这段mysql like语句语句错在哪,求大神指教!

我想学MySQL,但是不知道该怎么学,求指教啊!!!MySQL的英文界面首先就让我胆战心惊了。。。_百度知道
我想学MySQL,但是不知道该怎么学,求指教啊!!!MySQL的英文界面首先就让我胆战心惊了。。。
但是不知道该怎么学。!!MySQL的英文界面首先就让我胆战心惊了。求大神指点学习方法!我想学MySQL,求指教啊!。!
我有更好的答案
baidu英文多不是事,用的多了就不怕了,因为熟能生巧,傻瓜式安装可以下载文库里面的文档。手动安装教程在我的空间有.baidu,中文版的。建议你下载MySQL手册://hi://hi。我的百度空间.com/thatyear/archive/tag/mysql" target="_blank">http:<a href="http,不会的东西里面都可以翻译
这个改成中文界面很简单,你在MySQL图形化界面里面的 Settings(设置)--&&Global Settings(系统设置)--&Language--&Chinese,Simplify。 OK!
买本书,多写SQL语句,什么英文界面??截个图?
就是MYSQL的用户界面啊,全是英文的额
其他类似问题
为您推荐:
胆战心惊的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁求mysql语句牛逼的大神帮忙,写一个查询,两张表,分数可以追加!_百度知道
求mysql语句牛逼的大神帮忙,写一个查询,两张表,分数可以追加!
baidu://h<img class="ikqb_img" src="http,开头两位substring(login_name.baidu.hiphotos,sex.hiphotos,phone和count(rec_id)(包括0.com/zhidao/wh%3D600%2C800/sign=bf33a879e3c00/b899fe7c88a96f061d950b7bf6db.baidu,查询length(login_name)长度等于8.jpg" />sys_user是用户表,现在要求两张表通过user_id关联,account_record是流水表.hiphotos,login_name://c.hiphotos.hiphotos.baidu.jpg" esrc="http.hiphotos:///zhidao/wh%3D450%2C600/sign=0d4a2d85b999a8abd5ad6eddc443a0456a38dbb6fd536633df://h,user_id.baidu,2)=23 .com/zhidao/pic/item/0ff41bd5ad6eddc443a0456a38dbb6fd的(包括0,0表示流水表里没有该数据)所有人员的/zhidao/wh%3D450%2C600/sign=a8f25a81f30e924b899fe7c88a96f061d950b7bf6db.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="http,&/zhidao/pic/item/b899fe7c88a96f061d950b7bf6db://c
=3的(包括0,即sys_user表里有,开头两位substring(login_name:count(rec_id)&lt,而account_record里没有(
同时两张表关联要满足length(login_name)长度等于8,0表示流水表里没有该数据备注,1
提问者采纳
&on(A.user_id=B;sum(case&else&&as&null&GROUP&null&&is&1&&&nbsp.login_name)=8&JOIN&MINNER&&&else&nbsp,M;A&&nbsp.login_name.user_length(A;&LEFT&nbsp,N;M;&1&on(M;then&0&nbsp.=3&nbsp.login_B.rec_id&&nbsp,1;end)&A;when&end)&JOIN&BY&&CashFlowRecCnt&sys_user&HAVING&0&&FROM&nbsp.user_id&B&&&ASELECT&sys_user&nbsp.user_SELECT&N&account_record&nbsp.user_id)自己调试吧,M.CashFlowRecCntFROM&nbsp.user_id)&nbsp,2)=23&sum(case&when&&&then&&nbsp.user_id=N;&&nbsp.user_WHERE&nbsp,M;(&nbsp.B;and&)&is&&&nbsp,&&&&substring(A.rec_id&nbsp,M!我没有数据库
查出来的不是我想要的数据,可能是我说的不够清楚把,非常感谢
那就直接把表数据发出来,和想要的效果发出来,看看啥情况。
  我是新手,这有我写的一个sql,但是数据有点问题,我先贴出来:    查出来的count(rec_id)不是现在table2中的,应该是table1中的,没有就把count(rec_id)设为0,其他数据没问题了(贴代码提示超出长度,只能贴图了。。。。。)
你的业务是查询非活跃用户交易。你用内联方式 本身就是个错误。 table1 和 table2 子查询用的都是 内联。毕竟有没交易的用户,那就连不上了,count 是统计最后集合条目。所以我对我的SQL还是有信心的。
您的sql我执行了,完全没有问题,可是数据不是我想要的,我是个新手,请问我那句sql还有救吗?
您的sql我执行了,完全没有问题,可是数据不是我想要的,我是个新手,请问我那句sql还有救吗?
所以让你把表数据发出来,和想要的结果发出来,光发个SQL 没用。
提问者评价
虽然没有得到满意答案,分数还是给你吧,谢谢 1
其他类似问题
为您推荐:
其他1条回答
&&&&&&&&nbsp.REC_ID)&nbsp.USER_ID;account_record_1&nbsp.sys_JOIN&&&&&&&nbsp.USER_ID&REC_CountFROM&&nbsp.account_record&&&&1;&&(&&&&&&&&nbsp,&&nbsp.LOGIN_NAME;&&&&nbsp.sys_user&&&nbsp.sys_AND&&nbsp.sys_(SUBSTRING(GROUP&USER_ID&&account_record&&&nbsp.USER_IDWHERE&nbsp.sys_&&&nbsp.SEX;&&&&&AS&&nbsp.sys_&&&NOT&=&nbsp.account_record&nbsp.sys_&&BY&&&&&&&nbsp.sys_AS&ON&&)&&&&&&nbsp.USER_ID&FROM&&=&&nbsp,&&&OUTER&&&&&nbsp.USER_NAME;(COUNT(REC_ID)&&&&&&&&&&&&&&&=&8)&&&&&&&&&BY&&(LEN(dbo,&&&&&USER_ID&&2)&&nbsp.sys_AND&&&&nbsp.LOGIN_NAME)&&&&&AS&COUNT(account_record_1;&&&nbsp.USER_ID;&&&&&&nbsp.sys_&account_record_1;&#39,&&nbsp,&nbsp,&&gt.sys_&&&&HAVING&&&23&#39;&&&IN&nbsp,&&&&&&&nbsp.sys_&&nbspSELECT&&&nbsp.USER_NAME;&(SELECT&&&&&&nbsp,&&nbsp.LOGIN_NAME;3)))GROUP&&&nbsp.SEX&&&&&&nbsp,&&&&&nbsp.sys_&&nbsp.LOGIN_NAME;&LEFT&&&dbo
抱歉,没有贴出来。。。
mysql提示,没有执行LEN这个方法
我用的SQL server语句里的 你换成length
估计我没有说清楚,数据不是我想要的,我也写了一个,但是查出来的数据有点问题,能贴出来问你吗?
SUBSTRING(dbo.sys_user.LOGIN_NAME, 1, 2) = &#39;23&#39;改成SUBSTRING(dbo.sys_user.LOGIN_NAME, 1, 2) = 23MYSQL太复杂了~~~MySql字符串不用加2个单引号呀?
引号可加可不加,贴我写的sql,让你帮忙参考下
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁这个错怎么回事啊?求大神指教
TypeError: Cannot read property 'movie' of undefined
at app.get.Movie.fetch.res.render.title (e:\1_Tango\3. node\6. imook\app.js:81:20)
at Layer.handle [as handle_request] (e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\layer.js:76:5)
at next (e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\route.js:100:13)
at Route.dispatch (e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\route.js:81:3)
at Layer.handle [as handle_request] (e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\layer.js:76:5)
at e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\index.js:234:24
at Function.proto.process_params (e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\index.js:312:12)
at e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\index.js:228:12
at Function.match_layer (e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\index.js:295:3)
at next (e:\1_Tango\3. node\6. imook\node_modules\express\lib\router\index.js:189:10)
写下你的评论...
写下你的评论...
Copyright (C)
All Rights Reserved | 京ICP备 号-2求指教,写了个联接mysql的模糊搜索的代码,tomcat运行有错、但是不知道错在哪里 - Java Web开发当前位置:& &&&求指教,写了个联接mysql的模糊搜索的代码,tomcat求指教,写了个联接mysql的模糊搜索的代码,tomcat运行有错、但是不知道错在哪里&&网友分享于:&&浏览:17次求指教,写了个连接mysql的模糊搜索的代码,tomcat运行有错、但是不知道错在哪里index.jsp的部分代码
&td&colspan="121"&width=""&height=""&bgcolor=""&
&form&name="search_form"&action="/wohenni/Search"&method="post"&教学资源视频查询:&&br&
请输入关键字:&input&type="text"&name="keyword"&size="16"&value="请输入关键字"
onmouseover="this.focus()"&onfocus="this.select()"&&br&
请选择查询范围:&select&name="way"&
&option&value="1"&视频名称&/option&
&option&value="2"&出版时间&/option&
&option&value="3"&制作单位&/option&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&option&value="4"&出版社&/option&&
&/select&&&input&type="button"&value="查询!"&onclick="search_sub()"&&br&
&script&language="javascript"&
&&&&&&&&&&&&&&&&&&&&&&&&function&search_sub()
&&&&&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&if(document.search_form.keyword.value==="")
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&window.alert("请输入关键字!");
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&document.search_form.keyword.focus();
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&return&&;
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&}
&document.search_form.submit();
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&&&&&&&&&&/script&&/form&
。。。。。。。。。。。。
import&java.sql.*;
import&java.sql.DriverM&&
import&java.sql.ResultS&&
import&java.sql.S
public&class&DBConnection&{
&&private&final&String&url="jdbc:mysql://localhost:3306/luxiang";
private&final&String&userName="root";
private&final&String&password="pikaqiu";
private&java.sql.Connection&con=
Class.forName("com.mysql.jdbc.Driver");
}catch(&ex){
System.out.println("数据库加载失败");
public&boolean&creatConnection()&{
con=(java.sql.Connection)DriverManager.getConnection(url,&userName,&password);
((java.sql.Connection)&con).setAutoCommit(true);
}catch(&e){
public&ResultSet&executeQuery(String&clause){
&&&&&ResultSet&rs=
if(con==null){
creatConnection();
Statement&stmt=((java.sql.Connection)&con).createStatement();
rs=stmt.executeQuery(clause);
}catch(SQLException&e){
}catch(SQLException&e){
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
import&javax.servlet.http.HttpS
import&javax.servlet.http.HttpServletR
import&javax.servlet.http.HttpServletR
import&java.sql.*;
import&dao.DBC
&*&@author&Lenovo
public&class&Search&extends&HttpServlet&{
&&&public&Search()&{
&&&&&&&&super();
&&&&&&&&//&TODO&Auto-generated&constructor&stub
&&&&protected&void&doGet(HttpServletRequest&request,&HttpServletResponse&response)
&&&&&&&&&&&&throws&,&&{
&&&&& response.setHeader("Pragma","No-cache"); 共&3&页:
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有}

我要回帖

更多关于 mysql语句 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信