将表specialcarorder中的ordercode字段更新为自增的数declare @bid intdeclare @wincode intset @wincode=900001declare cur cursorread_onlyfor select id from specialcarorder where activetype=8182open curfetch next from cur into @bidwhile(@@fetch_status=0)beginupdate specialcarorder set ordercode...【阅读全文】
今天在写sql的时候的突然发现如下奇怪的情况可以看到,在我round(5.828450,4)的时候得到的是5.8285,而我select round(preprice,4) from test的时候得到的反而是5.8284。这里test表里的值也是5.82845,百思不得姐在一番google之后发现了一段话然后我查看了一下test表里preprice字段的类型,确实是float,...【阅读全文】