The present invention relates to an antidiabetic agent containing the same as an active ingredient and a salt thereof, or a compound represented by the general formula (II) following a GPR119 agonist or (I). T 1-4: N remaining CR 4 or one all CR 4, R 2-3: H, C 1-8 alkyl A: (CH 2) 1-3, a single bond, etc., B: (CR5) 1- 3, a single bond, such as U, V: (Hal, OH, etc. optionally substituted), etc. C 1-3 alkylene: single, double bond W:: 7, W-X between one N other CR C, CR 8, X, YZ: COOR 9, COR 10, alkyl benzoxadiazolyl, alkyl pyrimidyl, etc. Q: N, CH, A 0: O, single bond, etc., B 0: (CR25) 1-3, a single bond, etc. U 0, V 0: 27, W 0 -X 0 N between one other CR: single, double bond W 0: C, CR 28, X 0, Y 0: C 1-3 alkylene (Hal, OH, etc. optionally substituted), etc. Z 1-8 alkyl, such as H, Hal, OH, C,R 5,25:: 0: COOR 29, COR 30, alkyl benzoxadiazolyl, alkyl pyrimidyl, etc. R 1,7,8,20,27,28 H , C 1-8 alkyl, C 3-6 cycloalkyl R 4-5,21-23: H, C 1-8 alkylsulfonyl, tetrazolyl, triazolyl, etc., R 9-10,29-30:C 1-8 alkyl etc.本発明は、GPR119作動薬である次の一般式(I)又は(II)で表される化合物又はその塩、並びにこれを有効成分として含有する糖尿病治療剤に関する。T1-4:1つN残りCR4or全てCR4、R2-3:H,C1-8アルキルA:(CH2)1-3,単結合等、B:(CR5)1-3,単結合等U,V:片方N他方CR7、W-X間:単,二重結合W:C,CR8、X,Y:C1-3アルキレン(Hal,OH等置換可)等Z:COOR9,COR10,アルキルオキサジアゾリル,アルキルピリミジル等Q:N,CH、A0:O,単結合等、B0:(CR25)1-3,単結合等U0,V0:片方N他方CR27、W0-X0間:単,二重結合W0:C,CR28、X0,Y0:C1-3アルキレン(Hal,OH等置換可)等Z0:COOR29,COR30,アルキルオキサジアゾリル,アルキルピリミジル等R1,7,8,20,27,28:H,Hal,OH,C1-8アルキル等、R5,25:H,C1-8アルキル,C3-6シクロアルキルR4-5,21-23:H,C1-8アルキルスルホニル,テトラゾリル,トリアゾリル等、R9-10,29-30:C1-8アルキル等