select * from personal join information  on personal.no = information.no  join product on information.productid = product.product_idwhere informatio date=".$_POST["date"]."怎樣加上去上面的sql?

解决方案 »

  1.   

    select * from personal 
    join information  on personal.no = information.no  
    join product on information.productid = product.product_id 
    where information.date=".$_POST["date"].";
      

  2.   


    這句sql運行不到,哪裏出問題?
      

  3.   

    "select * from personal
    join information  on(personal.no = information.no and information.date=".$_POST['date'].") 
    join product on(information.productid = product.product_id)"; 试一下
      

  4.   

    select * from personal join information  on personal.no = information.no  join product on information.productid = product.product_id where informatio date=".$_POST["date"]."怎樣加上去上面的sql? 
    select * from personal join information  on personal.no = information.no  join product on information.productid = product.product_id where informatio.date=".$_POST["date"]."这样?
      

  5.   

    $str_sql="select * from personal 
    join information  on personal.no = information.no  
    join product on information.product_id = product.product_id 
    where information.date='".$_POST['date']."'";
    PS:字段名是否少写了个"_"