两个问号是什么意思
try
select  t.userID , t.lesson_id , t.class_id , t.state , c.xkmc , j.xm
    from jwb_xksz c, shequ_teacher_begin_school t , JSA_JBXX j where t.lesson_id = c.xkbm  and j.userID=t.userID and t.state=?  and c.xxdm = ? 
 order by t.lesson_id, t.state desc