当前位置:网站首页>笔试强训第15天
笔试强训第15天
2022-07-15 20:38:00 【库里不会投三分】
选择题
- delete from 表名 where +条件 删除操作必须以元组为单位,delete *是错误用法
- B和C错的点是一样的 *只有一行,sum(english)有多行,跟其对不上,不能合并,除非可以使用group by
- mysql_num_fields():返回查询结果集的总列数;mysql_num_rows():返回查询结果集的总行数
- 数据库.表名是全称,可以在别的数据库也可以执行操作,这里删除的是表,不是表的数据
- 相当于三目运算符,如果是非0的数,就选择第一个选项,如果是0就选择第二选项
编程题
package days.day15; import java.util.*; public class Main1{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ int n=sc.nextInt(); int count=0; while(n>0){ if((1&n)==1){ count++; } n=n>>1; } System.out.println(count); } } }
边栏推荐
- js如何实现列表自动滚动循环播放
- Leetcode-14-longest public prefix
- 同花顺股票开户安全吗 reits基金怎么购买
- 华泰证券网上开户安全吗,为什么还要身份证银行卡呢
- (板子)AcWing 143.最大异或对
- Codeforces Round #804 B Almost Ternary Matrix
- Centos7.2 install mysql5.7 through RPM package
- GD32F4xx IAP 升级思路
- In a real case, college students were cheated when taking orders. I hope you won't be cheated [painful lesson]
- 国信证券手机开户安全吗?开户如何办理
猜你喜欢

C language love code Daquan (2022 confession artifact)

Codeforces Round #804 B Almost Ternary Matrix

【空间&单细胞组学】第2期:乳腺癌患者经anti-PD1治疗后,肿瘤内变化的单细胞图谱

Scripting rules and variable definitions

Codeforces Round #802 A. Optimal Path

要想不踩SaaS那些坑,得先了解“SaaS架构”

Leetcode-162- find the peak value (two points must be seen)

CAN通信(1)——CAN通信物理層

Codeforces Round #804 C The Third Problem
Shiro integrates redis to realize distributed session processing
随机推荐
模拟卷Leetcode【普通】1894. 找到需要补充粉笔的学生编号
华为云服务器云数据库创建只读过程
模拟卷Leetcode【普通】1823. 找出游戏的获胜者
leetcode双指针水题题解
Network address translation
Unity shader - cginclude file cginc
模拟卷Leetcode【普通】1765. 地图中的最高点
Nodejs直接使用proto文件
[ArcGIS creates a small picture frame of islands and nine segment lines in the South China Sea]
C language custom type (struct, bit segment, enumeration, Union)
C language love code Daquan (2022 confession artifact)
接口测试实战 - 学生信息管理系统
答读者问(7):关于doublet
LeetCode-62-不同路径
微服务架构 | 组件目录
Perspective of 100 listed companies on the Beijing stock exchange: the new world of middle-aged men of science and technology
8个关于 Promise.then 和 Promise.catch 的面试题,一定要掌握
包装类型
君乐宝要IPO了,资本却笑不出来
(伟大的dfs)洛谷P1219 [USACO1.5]八皇后 Checker Challenge




