我想让dbgrid显示的结果是
200305061118 2003-06-03 11:50:13.000 美白 123
2003-06-03 11:50:13.000 护肤 124
2003-06-03 11:50:13.000 美白 123
2003-06-03 11:50:13.000 护肤 124
2003-06-03 11:50:13.000 护肤 124
2003-06-03 11:50:13.000 美白 123
200305061119 2003-06-03 11:50:13.000 美白 123
2003-06-03 11:50:13.000 美白 123
他们每行的第一个列都是200305061118,我就是想让同让编号的记录,只显示一个编号列,这个sql语句怎么写呀???
200305061118 2003-06-03 11:50:13.000 美白 123
2003-06-03 11:50:13.000 护肤 124
2003-06-03 11:50:13.000 美白 123
2003-06-03 11:50:13.000 护肤 124
2003-06-03 11:50:13.000 护肤 124
2003-06-03 11:50:13.000 美白 123
200305061119 2003-06-03 11:50:13.000 美白 123
2003-06-03 11:50:13.000 美白 123
他们每行的第一个列都是200305061118,我就是想让同让编号的记录,只显示一个编号列,这个sql语句怎么写呀???
begin
if query1.FieldByName(200305061118的字段名)=stringGrid.cells[1,i-1] then
stringGrid.cells[1,i]:=''
else stringGrid.cells[1,i]:=query1.fieldbyname(200305061118的字段名);
stringGrid.cells[2,i]:=query1.fieldbyname(2003-06-03 11:50:13.000的字段名);
stringGrid.cells[2,i]:=query1.fieldbyname(美白的字段名);
stringGrid.cells[2,i]:=query1.fieldbyname(123的字段名);
query1.Next;
end;