java语句向数据库添加数据,怎么使用表的默认值

如题所述

第1个回答  2016-07-23
public int getTextWidth(String text, Paint paint) {
Rect bounds = new Rect();
paint.getTextBounds(text, 0, text.length(), bounds);
int width = bounds.left + bounds.width();
return width;
}
public int getTextHeight(String text, Paint paint) {
Rect bounds = new Rect();
paint.getTextBounds(text, 0, text.length(), bounds);
int height = bounds.bottom + bounds.height();
return height;
}本回答被网友采纳
第2个回答  2016-07-22
具有默认值的字段在插入的时候不插就可以了本回答被提问者采纳
相似回答