使用oracle数据库过程中,偶尔遇到 ORA-01008: 并非所有变量都已绑定 这个错误,此时应该查检sql中是否有以下情况: 1、var sql = string.Format("select * from student t where t.name='{0}' and t.address= ...
分类:
其他好文 时间:
2020-05-16 12:16:22
阅读次数:
77
原文:SQL SERVER 的窗体函数OVER的使用:row_number/rank/dense_rank 举个例子给大家加深印象,也方便理解: 1.目前有这几笔数据: Select '1班' banji,'张三' as name ,56 as score into #studentSoure un... ...
分类:
数据库 时间:
2020-05-16 00:30:14
阅读次数:
93
使用void(Student::*pwho) void = & Student::who // 构造函数指针 使用string Student::*p_name = & Student::m_name //构造变量指针 #include <iostream> #include <cstdio> us ...
分类:
编程语言 时间:
2020-05-16 00:25:25
阅读次数:
55
对接入库数据,有时候数据量比较大,需要分批入库,写了一个分批入库的小方法 if (!CollectionUtils.isEmpty(student)) { // 计数器 int count = 1; int total = student.size(); List<StudentEntity> st ...
分类:
编程语言 时间:
2020-05-15 17:58:00
阅读次数:
128
用户方面 1、用shell脚本批量建立Linux用户 实现要求:创建用户student1到student50,指定组为student组!而且每个用户需要设定一个不同的密码! #!/bin/bash for i in `seq 1 10` do useradd -G student student$i ...
分类:
系统相关 时间:
2020-05-15 17:31:36
阅读次数:
89
列标签 select id,name from student; select id as '学号',name as '姓名' from student;(只是修改结果) 排序 select * from student where sex='1' order by sno asc,sname de ...
分类:
数据库 时间:
2020-05-14 19:47:20
阅读次数:
76
首先介绍一下PriorityQueue优先队列,普通队列是先进先出的,但是优先队列刚好不是这样的,优先队列存在着一个优先级,换句话说也就是排序问题,队列里的对象,某个值越大,或越小,排的就越靠前。这里就用到了Comparable接口。pic-1589438395307.png这里的Student对象... ...
分类:
其他好文 时间:
2020-05-14 15:53:20
阅读次数:
65
当查找的数据不存在,返回为 空时 在 html 中使用 {%empty%} 语句 进行显示 def getstudents(request): students = Student.objects.all().filter(s_name = 'qwer') # 指定一个不存在的值, # studen ...
分类:
其他好文 时间:
2020-05-14 13:47:29
阅读次数:
72
创建 app6 在项目的 settings 中进行注册 INSTALLED_APPS 里面添加 'app6.apps.App6Config' 在 app6 的models.py 中创建数据表 class Student(models.Model): s_name = models.CharField ...
分类:
Web程序 时间:
2020-05-13 17:12:23
阅读次数:
94
创建型模式就是前面大佬总结出 对象的创建 如何合理利用 最后得出来的一些解决方案 比如现在有一个学生对象,我们实例化它的时候要两秒钟 (前面代码是类,后面代码放在 static void Main(string[] args){}里面执行) public class Student { public ...
分类:
其他好文 时间:
2020-05-13 12:23:11
阅读次数:
62