摘要: 登录服务器,找到数据库所在的目录,执行ls命令,查看到文件夹内含有文件,将文件删除后即可删除数据库 阅读全文
posted @ 2021-07-20 15:13 飞扬92 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 参考文章:https://blog.csdn.net/huiyanshizhu/article/details/78907629 前后对比 原因:cmd默认的编码是gbk(代码页:936),而python console 里面的编码是utf-8(代码页:65001),由于编码不一致,所以输出时会出现 阅读全文
posted @ 2021-07-20 14:59 飞扬92 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1 #encoding=utf-8 2 import numpy as np 3 import pandas as pd 4 df = pd.DataFrame( 5 [ 6 ("bird", "Falconiformes", 389.0), 7 ("bird", "Psittaciformes", 阅读全文
posted @ 2021-07-07 17:53 飞扬92 阅读(558) 评论(0) 推荐(0) 编辑
摘要: import time import requests from concurrent.futures import ThreadPoolExecutor import pymysql import threading import json def get_info(item): try: id, 阅读全文
posted @ 2021-06-28 14:30 飞扬92 阅读(2937) 评论(1) 推荐(0) 编辑
摘要: #encoding=utf-8 import pandas as pd import os import csv def concat_csv(filename,dirpath): with open(filename,'w') as f: cw=csv.writer(f) cw.writerow( 阅读全文
posted @ 2021-06-09 11:36 飞扬92 阅读(149) 评论(0) 推荐(0) 编辑
摘要: SQL Server 2008中引入 SELECT *FROM( VALUES ('tom', 18, 1), ('jerry', 19, 2), ('lanmao', 17, 3)) oo (name, age, id); 阅读全文
posted @ 2020-10-27 15:40 飞扬92 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 生成测试数据 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[test]( [id] [int] NULL, [name] [varchar](20) NULL, 阅读全文
posted @ 2020-10-27 10:23 飞扬92 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 表结构入下: -- -- Table structure for area20201023 -- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[area20201023]') AND typ 阅读全文
posted @ 2020-10-23 13:13 飞扬92 阅读(566) 评论(0) 推荐(0) 编辑
摘要: WITH x ( dy ,mth ) AS ( SELECT dy ,month(dy) FROM ( SELECT dateadd(mm, 1, (getdate() - datepart(dy, getdate())) + 1) dy ) tmp1 UNION ALL SELECT datead 阅读全文
posted @ 2020-10-22 15:37 飞扬92 阅读(123) 评论(0) 推荐(0) 编辑
摘要: --在Sql Server中执行这段代码可以开启CLR EXEC sp_configure 'show advanced options','1';GO RECONFIGURE;GO EXEC sp_configure 'clr enabled','1'GO RECONFIGURE; EXEC sp 阅读全文
posted @ 2020-09-30 11:37 飞扬92 阅读(178) 评论(0) 推荐(0) 编辑