-
mysql关联查询语句如何写?数据库:mysql表A字段:idbides(存储值为1,2,3,4,5,6...)表B字段:idname现在只知道A表中的ID值,请问如何循环列出A表该ID值对应的B表集合!也就是说给一个A表ID,然后列出B表中的内容(B表内容为:A表bides字段中的值)?????xyflash3 时间:10-21 + 阅读全文
-
mysql语句正常,却在linux下读不出数据SELECTid,title,CASEflagwhen"top"then"<fontcolor=red>头条</font>"when"hot"then"<fontcolor=green>热点</font>"else""endasflag,Date_Format(regdate,"%Y/%m/%d")asregdacnlive 时间:10-21 + 阅读全文
-
大神,帮我找找错吧~!!!mysql的储存过程DELIMITER// createprocedurechk_tot(inc_numint)begindeclaretot_orddouble;declaremsg_textvarchar(45);selectsum(amount)intotot_ordfromorders wherecust=c_num;iftot_otutty 时间:10-21 + 阅读全文
-
一个存储过程参数连接问题大家好,我遇到mysql存储过程问题大致如下delimiter//createprocedureinitial(inmacvarchar(3),inflagvarchar(3),inh0h1h2h3vrachar(4))begindeclarenint;declaretempint;declareiint;setn=len(flag)seqiuxinyidian 时间:10-21 + 阅读全文
-
sql查询父id下的最后一个子idSQLcodecompositesingleABBCCDAABB参数为A查出D参数为B查出D参数为AA查出BB。要用标准sql来写,存储过程也行。不知道有什么好的办法。xiaobadi 时间:10-20 + 阅读全文
-
mysql登入时出错ERROR 2003:Can't connect to MySQL server on 'localhost'<10061>一年前装的mysql,当初localhost还能登入的。现在启动就出现了ERROR2003:Can'tconnecttoMySQLserveron'localhost'<10061>。网上找了很多方法要不看不懂,看懂的也没用。我是winxp系统的。求高人指点啊。当初装mssqlserver的时候装不上,只能寄希望于mysql了。多谢多谢啊。。。cece0926 时间:10-19 + 阅读全文