搜索到与相关的文章
MySql

MYSQL查询表的字段和表名

1、查询mysql包含某个字段的所有表:showtableslike'crm_%'2、查询mysql是否包含某张表:1)、DROPTABLEIFEXISTStablename;2)、做一个sql查询,比如:select*fromtablename/selectcount(*)fromtablename,如果返回值为空,则表不存在。3)、查询:SHOWTABLESLIKEtable1,判断返回值。如:if(mysql_num_rows(mysql_query

系统 2019-08-12 01:55:25 2732

MySql

Mysql 数据库创建基本步骤

1.创建数据库createdatabaseschool;2.使用数据库Useschool;3.创建用户createuserjame@localhostidentifiedby'jame';4.授权用户(注意这里是用了*哦,自己将school也替换成*号)grantselect,update,insert,createonschool.*tojame@localhostidentifiedby'jame';5.取消授权(现在明白为啥直接敲privilege没

系统 2019-08-12 01:55:23 2732

Oracle

ORA-01092: ORACLE 例程终止 强行断开连接

今天测试部门的人叫我过去,说是数据库当了,起不来了。我过去看了看情况,做了如下操作SQL>shutdownimmediate数据库已经关闭。已经卸载数据库。Oracle例程已经关闭。SQL>startupORACLE例程已经启动。TotalSystemGlobalArea135338868bytesFixedSize4534Array2bytesVariableSize10Array051Array04bytesDatabaseBuffers2516582

系统 2019-08-12 01:54:30 2732

数据库相关

Data Structure Linked List: Write a function

http://www.geeksforgeeks.org/write-a-function-to-get-the-intersection-point-of-two-linked-lists/第一第二个方法比较简单,下面这段代码是第三个方法1#include2#include3#include4#include5#include6#include7#inc

系统 2019-08-12 01:53:45 2732

Oracle

oracle中的常用字符串函数

oracle中的常用字符串函数如下:concat(string1,string2)instr(string1,string2)lpad(string1,x[,string2])ltrim(string1,[string2])nls_initcap(string[,nlsparams])nlslower(string[,nlparams])nls_upper(string[,nlsparams])nlssort(string[,nlsparas])repla

系统 2019-08-12 01:53:08 2732

数据库相关

mongodb的查询语句学习摘要

看了些资料,对应只需要知道怎么查询和使用mongodb的我来说,这些足够啦。左边是mongodb查询语句,右边是sql语句。对照着用,挺方便。db.users.find()select*fromusersdb.users.find({"age":27})select*fromuserswhereage=27db.users.find({"username":"joe","age":27})select*fromuserswhere"username"="j

系统 2019-08-12 01:53:00 2732

数据库相关

Linq中使用Left Join

准备一些测试数据,如下:useTestCreatetableStudent(IDintidentity(1,1)primarykey,[Name]nvarchar(50)notnull)CreateTableBook(IDintidentity(1,1)primarykey,[Name]nvarchar(50)notnull,StudentIDintnotnull)insertintoStudentvalues('张三')insertintoStudent

系统 2019-08-12 01:52:38 2732

数据库相关

MS_SQL_获取字符串最后出现的字符串及位置

一.如:'6.7.8.2.3.4.x'得到最后一个'.'后面的字符串:declare@str1varchar(50)set@str1='6.7.8.2.3.4.x'selectREVERSE(SUBSTRING(REVERSE(@str1),1,CHARINDEX('.',REVERSE(@str1))-1))--------string:'x'--------------------------------------------------------

系统 2019-08-12 01:33:49 2732

操作系统

关闭常见端口

关闭445端口关闭445端口的方法有很多,但是我比较推荐以下这种方法:修改注册表,添加一个键值Hive:HKEY_LOCAL_MACHINEKey:System\CurrentControlSet\Services\NetBT\ParametersName:SMBDeviceEnabledType:REG_DWORDValue:0修改完后重启机器,运行“netstat-an”,你将会发现你的445端口已经不再Listening了。关闭139开始-设置-网络

系统 2019-08-12 01:33:42 2732

SqlServer

SQL Server 2000 升级到 SQL Server 2008 性能

今天在相同环境测试2000和2008性能让我意外的是2008明显比2000慢很多测试sql:SETSTATISTICSIOONSETSTATISTICSTIMEONSELECTCOUNT(1)FROMdbo.tbtextaINNERLOOPJOINdbo.tbtextbONa.id=b.idoption(maxdop1)SETSTATISTICSIOOffSETSTATISTICSTIMEOff表结构:CREATETABLE[dbo].[tbtext]([

系统 2019-08-12 01:33:35 2732