二、数据库操作SQL语句1、显示服务器上当前存在什么数据库SHOW DATABASES;2、创建名称为rewin的数据库CREATE DATABASE rewin;3、删除名称为rewin的数据库DROP DATABASE rewin;4、选择rewin数据库USE rewin;三、表操作SQL语句...
分类:
数据库 时间:
2014-07-16 21:09:40
阅读次数:
273
A number of trends in the IT industry have contributed to the increasing size of ERP application databases and show no signs of abating. These include...
分类:
其他好文 时间:
2014-07-16 19:56:00
阅读次数:
306
1). In /etc/my.ini, addskip-grant-tables2). mysql -u root -p (no password required)mysql> show databases;+--------------------+| Database |+----------...
分类:
Web程序 时间:
2014-07-13 20:58:19
阅读次数:
349
#!/bin/bash#Authorxieping1991@163.comcd/sqlbak/usr/local/mysql/bin/mysqladmin-uroot-p123456flush-logsMAXIMUM_BACKUP_FILES=10BACKUP_FOLDERNAME="database_backup"DB_HOSTNAME="localhost"DB_USERNAME="root"DB_PASSWORD="123456"DATABASES=("数据库名称""数据库名称""..
分类:
数据库 时间:
2014-07-13 14:27:14
阅读次数:
376
exec sp_databases; --查看数据库exec sp_tables; --查看表exec sp_columns Categories;--查看列exec sp_helpIndex Categories;--查看索引exec sp_helpConstraint Catego...
分类:
数据库 时间:
2014-07-12 14:10:43
阅读次数:
178
用if exists建表【转】1 判断数据库是否存在 Sql代码if exists (select * from sys.databases where name = ’数据库名’) drop database [数据库名] if exists (select * from sys.database...
分类:
数据库 时间:
2014-07-11 22:55:51
阅读次数:
267
上一篇文章我已经新建了一个SaAdmin的APP,现在开始在这APP下面来code1、修改setting.py的数据库连接:DATABASES={
‘default‘:{
‘ENGINE‘:‘django.db.backends.mysql‘,
‘NAME‘:‘QjshAdmin‘,
‘USER‘:‘root‘,
‘PASSWORD‘:‘lihuipeng‘,
‘HOST‘:‘localhost‘,
‘PORT‘:‘3306‘,
}
}新..
分类:
其他好文 时间:
2014-07-09 09:02:47
阅读次数:
276
疯狂的暑假学习之 Django学习笔记(三)—— 模型 model
参考:《The Django Book》 第5章
1.setting.py 配置
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # 用什么数据库管理系统
'NAME': '',...
分类:
其他好文 时间:
2014-07-08 11:07:42
阅读次数:
208
root@Debian:~#catdumphelp.shDATABASES_TO_EXCLUDE="test"EXCLUSION_LIST="‘information_schema‘,‘mysql‘"forDBin`echo"${DATABASES_TO_EXCLUDE}"`doEXCLUSION_LIST="${EXCLUSION_LIST},‘${DB}‘"doneSQLSTMT="SELECTschema_nameFROMinformation_schema.schemata"SQLSTMT="${SQ..
分类:
数据库 时间:
2014-07-03 14:06:20
阅读次数:
273
1.链接数据库:mysql -h localhsot -u root -p2.显示MySql中的数据库:show databases;3.进入数据库:use (数据库名称);4.查看数据库中的表:show tables;5.显示表结构:desc (表名称);6.创建数据库:create badaba...
分类:
数据库 时间:
2014-07-03 13:16:56
阅读次数:
299