sh_role表结构如下sh_privilege表结构如下其中sh_role表中的pri_id_list存储的id为sh_privilege表中的id值,多个角色通过逗号分隔存储,现在想将sh_role表中的pri_id_list替换成sh_privilege表中对应的pri_name,使用的sql语句如下图:
分类:
数据库 时间:
2017-04-12 05:26:45
阅读次数:
295
#include<stdio.h> int main() { struct Student { long int num; char name[20]; char sex; char addr[20]; } a={10101,"lilin",'M',"123 Bei Jing Road"}; pri ...
分类:
其他好文 时间:
2017-04-10 20:27:34
阅读次数:
174
//////2010 #include #include #include using namespace std; mapm; bool Prime[10007]; int P[10005],n; const int maxn=10000; int main() { n=0; memset(Pri... ...
分类:
其他好文 时间:
2017-03-30 16:06:38
阅读次数:
282
Python是一门什么类型的语言: 编译型语言,把明文的代码执行前,先转成二进制,在执行,这个过程就叫编译;(c,c++,go) 特点:运行效率高;依赖编译平台,linux操作系统跟cpu的交互结构与Windows不是完全一样的(例如linux:print_to_console,windos:pri ...
分类:
编程语言 时间:
2017-03-27 22:16:01
阅读次数:
228
1.使用定时器异步修改 这是相对比较简单的方法 在Wpf中定时器使用DiapatcherTimer,不使用Timer原因: 在一个应用程序中,Timer会重复生成time事件,而DispatcherTimer是一个集成到了Dispatcher队列中的时钟,这可以使它被按照指定的时间间隔以指定的pri ...
分类:
编程语言 时间:
2017-03-27 18:36:22
阅读次数:
475
输出所有希腊字符(char类型和int类型转换练习) 已知:开始字符 'α' 和 结束字符'ω' package homework0702; public class Alphabet { public static void main(String[] args) { System.out.pri ...
分类:
其他好文 时间:
2017-03-25 16:36:01
阅读次数:
333
iOS10 以后,需要在plist文件里面添加各种权限: 如下: 这里仅以相册的为例: plist文件里面添加,Privacy - Photo Library Usage Description,Value值为描述,弹出的提示框会显示出来。 升到iOS10之后,需要设置权限的有: 麦克风权限:Pri ...
分类:
移动开发 时间:
2017-03-25 12:53:32
阅读次数:
1099
type TForm1 = class(TForm) Button1: TButton; ComboBox1: TComboBox; procedure Button1Click(Sender: TObject); procedure FormCreate(Sender: TObject); pri ...
分类:
其他好文 时间:
2017-03-24 23:28:11
阅读次数:
338
转载: JS中冒号的作用1.声明对象的成员2.switch语句分支3.三元表达式1.声明对象的成员 var Book ={ Name: '法', Price: 100, Discount : function(rate) { this.Price *= rate; }};alert(Book.Pri ...
分类:
Web程序 时间:
2017-03-22 21:22:17
阅读次数:
153
Java中创建的对象是保存在堆中,为了提高查找的速度而使用了散列查找。基本思想:定义一个键来映射对象所在的内存地址当需要查找对象时,只需要查找键即可,这样就不用遍历整个堆内存来查找对象publicclassCat{
privateStringname;
privateintage;
privatedoubleweight;
pri..
分类:
其他好文 时间:
2017-03-18 13:48:36
阅读次数:
131