表A
F_Begincode F_Endcode F_type
000001 000010 1
000001 000003 2
000005 000005 2F_type=1 表示入库 F_type=2 表示销售出库
F_begincode表示起始号码段,F_endcode表示终止号码段如上表我入库10张,销售了4张,我想把没有售出的号码段查询显示出来怎么做呢?
F_Begincode F_Endcode F_type
000001 000010 1
000001 000003 2
000005 000005 2F_type=1 表示入库 F_type=2 表示销售出库
F_begincode表示起始号码段,F_endcode表示终止号码段如上表我入库10张,销售了4张,我想把没有售出的号码段查询显示出来怎么做呢?
F_Begincode F_Endcode F_type
000004 000004 1
000006 000010 1还是
code
000004
000006
......
000010
?
F_Begincode F_Endcode F_type
000001 000010 1
000001 000003 2
000005 000005 2
000050 000100 1数据库设计得不是很好。。