Maison > Article > développement back-end > 向MYSQL中安插数据不成功
向MYSQL中插入数据不成功
报错内容:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't produce ultraviolet light, make the ring 6. Its become more clean and comfort' at line 8
ECHO那对数据库插入数据的语句内容如下:
经过测试,应该是re_mark 字段出了问题,因为我尝试对这个字段插入比较少的字数时,是可以成功的。
(re_mark字段的类型定义是:... re_mark text,....
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->insert into product ( p_name,p_class,p_model,re_mark,pic ) values ( '大幅度反对','大幅度反对','ddfdf','1. Energy saving: 70% energy than common fluorescent lamp; 2. The green environmental protection: LED tube no ultraviolet, such as infrared no radiation and contains no mercury and other harmful substances; 3. Long life: LED tube normal use for 50000 hours; 4. No stroboscopic: LED constant current work, effectively reduce LED light failure, start fast, no flash, protect eyes; 5. Reduce mosquito: different from other light source ultraviolet attract a mosquito, LED don't produce ultraviolet light, make the ring 6. Its become more clean and comfortable; 7. Color is rich: make full use of the advantage of rich color LED production various emitting light colors tubes; 8. Use chip Epistar from taiwan , luminous efficiency is the highest; 9. Shell with 1/2 aluminium, 1/2 PC material, circuit boards use high strength fiber board, combined with compact structure and assembly process, so that only the tube heat sex greatly improved, ensure that LED work in low temperature and try to minimize the LED light failure; 10.The application places: office buildings,factories,shopping malls, schools, public, indoor lighting and colour, such as home decoration and through the CE and ROHS the authentication.', 'upfiles/CR-kNgqQmYmuw.jpg' )