MySQL calculate table field length LENGTH

 Calculate the length of the field in the table: LENGTH (field name)

SELECT cus_ciq_no,LENGTH(cus_ciq_no) FROM tb_stockorder WHERE cus_ciq_no IS NOT NULL AND LENGTH(cus_ciq_no) >56;

 

Guess you like

Origin blog.csdn.net/y_bccl27/article/details/113857159