当前位置:首页 > 数据库 >

文章分类:数据库

数据库 go-mysql

1 package main 2 3 import ( 4 " log " 5 _ " github.com/go-sql-driver/mysql " 6 " github.com/jmoiron/sqlx " // 驱动 7 ) 8 9 type Class struct { 10 Id int64 11 Name string 12 Desc string 13 } 14 15 func main() { 16 // 建立连接 17 db, er……

数据库 Ethical Hacking - GAINING ACCESS(20)

CLIENT SIDE ATTACKS - Spoofing backdoor extension Change the extension of the trojan from exe to a suitable one. Make the trojan even more trustable. We will use an old trick using the "right to left overload" character. 1. Open up the char……

数据库 sql查询和linq以及datadrow的再次查询的组合使用

try { //先判断数据是否完整,例如分差,学校表和专业是否导入 /* var cx_fsd = from aa in sjklj.zy_fswc where aa.nd = DateTime.Now.Year - 1 aa.nd = DateTime.Now.Year aa.lb.Contains("文科") aa.lb.Contains("理科") sel……

数据库 EntityFramework使用SqlCe数据库

使用NuGet添加下面3个引用 App.Config的entityFramework节点这样配置: entityFramework defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlCeConnectionFactory, EntityFramework" parameters parameter value="System……

数据库 数据清洗文件操作--csv txt文件读写、excel文件读写、数据库文件读写

数据清洗之文件操作 这是一个关于淘宝母婴产品的用户消费行为的数据集,然后基于这个数据集,做数据清洗 csv文件读写 In[]: import pandas as pd import numpy as np import os In[]: # 更改文件路劲……

数据库 SparkSQL 如何自定义函数

1. SparkSql如何自定义函数 2. 示例:Average 3. 类型安全的自定义函数 1. SparkSql如何自定义函数? spark中我们定义一个函数,需要继承 UserDefinedAggregateFunction这个抽象类,实现这个抽象类中所……

数据库 36_部署MongoDB服务 、 MongoDB基本使用

版本:3.6.3 1. 部署MongoDB服务 192.168.4.50 创建服务工作目录 ]# mkdir /usr/local/mongodb ]# cd /usr/local/mongodb/ ]# mkdir etc ]# mkdir log ]# mkdir -p data/db 安装软件 ]# tar -zxvf mongodb-linux-x86_64-rhel70-3.6.3.tgz……

数据库 sql的一般查询语句(增删改查中的查)

/* 例子 判断规则http://xxx.xxx/new.php?id=57 and 1=1 正确http://xxx.xxx/new.php?id=57 and 1=2 错误http://xxx.xxx/new.php?id=57 and 2-1=1 正确http://xxx.xxx/new.php?id=57 and 2-1=2 错误http://xxx.xxx/new.php?id=57 and a=a 正确……

数据库 开源DDD设计模式框架YMNNetCoreFrameWork第二篇-增加swagger,数据库迁移,增加权限模

1、框架去掉application层,把HOst作为application层 2、增加swagger插件 3、增加Asp.net Identity身份验证 源代码地址:https://github.com/topgunymn/YMNNetCoreFrameWork……

数据库 通过SQL语句操作Sqlite数据库

一、数据库的创建 数据库版本为1 // Ctrl Shift U:大写 public static final String DATABASE_NAME ="zzw.db" ; public static final int VERSION_CODE =1 ; public static final String TABLE_NAME ="employee"; DatabaseHelper.java pack……