我通过数据库管理器工具将CSV导入sqlite。我已将标题设置为第一行,但是在导入时,数据是颠倒的。例如:
CSV文件中的
class Flyer{
static int panelWidth = 2200;
static int panelHeight = 1800;
public static Rectangle flyer = new Rectangle(panelWidth / 2 - 100, panelHeight / 2 - 100, 20, 20);
public static Rectangle flyer2;
public static int vertical;
public int startingY = 0;
public int newY;
Flyer(){
super();
}
public void repaint(Graphics g) {
int panelWidth = 2200;
int panelHeight = 1800;
if (vertical == startingY) {
startingY = flyer.y;
g.setColor(Color.red);
g.fillRect(flyer.x, startingY, flyer.width, flyer.height);
} else {
newY = startingY + vertical;
g.setColor(Color.red);
g.fillRect(flyer.x, newY, flyer.width, flyer.height);
}
}
}
在sqlite表中
A B C
1 6 5
3 2 1
1 7
9
有没有办法让这种情况不发生?