皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
正线线路和道岔,每月应检查()次(当月有轨检车检查线路可减少1次)。
A.
1
B.
2
C.
3
D.
4
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】现有用户信息表userinfo,表结构如下:id integer 主键,自增长;uname text 用户名;password text 密码。如果想添加用户名为张三,密码为123的用户,下面SQL语句正确的是()
A.
insert into userinfo(uname,password) values('张三','123');
B.
insert into userinfo(uname,password) values(张三,123);
C.
insert into userinfo values(null,'张三','123');
D.
insert into userinfo(password,uname) values('123','张三');
【多选题】现有用户表userinfo(userID,userName,password),设置主键的方法为( )。
A.
如果不能有同时重复的userName和password,那么userName和password可以组合在一起作为主键
B.
根据选择主键的最小性原则,做好采用userID作为主键
C.
根据选择主键的最小性原则,做好采用userName和password作为主键
D.
如果采用userID作为主键,那么在userID列输入的数值允许为空
【简答题】现有用户信息表userinfo,表结构如下:id integer 主键,自增长;uname text 用户名;password text 密码。如果想查询用户名为李四的用户信息,下面方法正确的是()A. private void select(SQLiteDatabase db){ ... String sql="select * from  where uname='李四'"; Cursor c...
【判断题】指针式万用表使用前需要进行机械调零。
A.
正确
B.
错误
【单选题】现有用户信息表userinfo,表结构如下:id integer 主键,自增长;uname text 用户名;password text 密码。如果想查询用户名为李四的用户信息,下面方法不正确的是()
A.
private void select(SQLiteDatabase db){ ... String sql="select * from  where uname='李四'"; Cursor cursor = db.rawQuery(sql,null); ... }
B.
private void select(SQLiteDatabase db){ ... String sql="select * from  where uname=?"; Cursor cursor = db.rawQuery(sql,new String[]{"李四"}); ... }
C.
private void select(SQLiteDatabase db){ ... Cursor cursor = db.query("userinfo",new String[]{"id","uname","password"},"uname=?",new String[]{"李四"},null,null,null,null); ... }
D.
private void select(SQLiteDatabase db){ ... Cursor cursor = db.query("userinfo",new String[]{"id","uname","password"},"uname=?",null,null,null,null,new String[]{"李四"}); ... }
【单选题】● 产生中断时,由硬件保护并更新程序计数器 PC的内容,其主要目的是 (12) 。 (12)
A.
节省内存空间并提高内存空间的利用率
B.
提高中断处理程序的运行速度
C.
简化中断处理程序的编写过程
D.
快速进入中断处理程序并正确返回被中断的程序
【单选题】现有用户信息表userinfo,表结构如下:id integer 主键,自增长;uname text 用户名;password text 密码。如果想删除用户名为张三的记录,下面方法不正确的是()
A.
private void delete(SQLiteDatabase db){ ... String sql="delete from userinfo where uname='张三'"; db.execSQL(sql); ... }
B.
private void delete(SQLiteDatabase db){ ... db.delete("userinfo","uname = ?",new String[]{"张三"}) ... }
C.
private void delete(SQLiteDatabase db){ ... String sql="delete from userinfo where uname=张三"; db.execSQL(sql); ... }
D.
private void delete(SQLiteDatabase db){ ... String uname = "张三"; db.execSQL("delete from userinfo where uname='"+uname+"'"); ... }
【单选题】现有用户信息表userinfo,表结构如下:id integer 主键,自增长;uname text 用户名;password text 密码。如果想添加用户名为张三,密码为123的用户,下面SQL语句不正确的是()
A.
insert into userinfo(uname,password) values('张三','123');
B.
insert into userinfo(uname,password) values(张三,123);
C.
insert into userinfo values(null,'张三','123');
D.
insert into userinfo(password,uname) values('123','张三');
【单选题】现有用户信息表userinfo,表结构如下:id integer 主键,自增长;uname text 用户名;password text 密码。如果想更新用户名为李四的密码为321,下面方法正确的是()
A.
private void update(SQLiteDatabase db){ ... String sql="update from userinfo set password = '321' where uname='李四'"; db.execSQL(sql); ... }
B.
private void update(SQLiteDatabase db){ ... String sql="update userinfo set password = '321' where id='李四'"; db.execSQL(sql); ... }
C.
private void delete(SQLiteDatabase db){ ... ContentValues cv = new ContentValues(); cv.put("password","321"); db.update("userinfo",cv,"uname = ?",new String[]{"张三"}) ... }
D.
private void update(SQLiteDatabase db){ ... String sql="update  userinfo  password = '321' where uname='李四'"; db.execSQL(sql); ... }
【简答题】现有用户信息表userinfo,表结构如下:id integer 主键,自增长;uname text 用户名;password text 密码。如果想更新用户名为李四的密码为321,下面方法正确的是()A. private void update(SQLiteDatabase db){ ... String sql="update from userinfo set password = '321...
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题