房天下 > 房天下问答 > 业主生活 > 其他
  • mysql 问题

    A,B,C,D都是整数。A,B,C,D都不能整除2A+B+C+D=33用mysql方式求出A,B,C,D=多少、会的请帮下忙。。认真写哦

    提问者:淡水清园

    发布于2010-12-21

共1个回答
  • irishu3000 丨Lv 0
    1.create table t (id int);2.create procedure tp()begindeclare i integer;set i=1;while i<33 doinsert into t value (i);set i=i+2;end while;insert into t value (0);end;3.call tp;4.select * from t a,t b,t c,t d where a.id+b.id+c.id+d.id=33 and a.id>=b.id and b.id>=c.id and c.id>=d.id;
    +1 2010-12-22 举报
热门人气推荐
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。