dbs:apple-notes
ylbtech-dbs:apple-notes |
-- =============================================
-- apple_备忘录
-- auhtor:Yuanbo
-- 8:54 2016/8/22
-- =============================================
1.A,数据库关系图(Database Diagram) 返回顶部 |
1.B,数据库设计脚本(Database Design Script)返回顶部 |
1.B.1, 第一版本
-- =============================================
-- apple_备忘录
-- auhtor:Yuanbo
-- 8:54 2016/8/22
-- =============================================
USE master
GO -- Drop the database if it already exists
IF EXISTS (
SELECT name
FROM sys.databases
WHERE name = N'AppleNotes'
)
DROP DATABASE AppleNotes
GO CREATE DATABASE AppleNotes
GO
use AppleNotes
go
-- =============================================
-- 文件夹
-- auhtor:Yuanbo
-- 规则:用户默认有一个“Notes",不许修改,新添加可以删除
-- 新建文件夹删除:
-- 1、删除文件夹和记录;
-- 2、仅删除文件夹,如果该文件夹存在记录,则转移到“Notes”下,文件夹转移。
-- 文件夹顺序:备忘录、[自定义文件夹]、最新删除
-- 8:54 2016/8/22
-- =============================================
create table Folder
(
folderId uniqueidentifier primary key, --编号【UI、PK】
name varchar(200) --名称
)
go
-- =============================================
-- 备忘录
-- auhtor:Yuanbo
-- 8:54 2016/8/22
-- =============================================
create table Note
(
noteId uniqueidentifier primary key, --编号【UI、PK】
content varchar(2000), --正文
additionalText varchar(200), --附加文本
pubdate datetime, --更新日期(创建日期/最后一次修改日期)
flagDel bit, --是否删除:0=未删除;1=已删除
folderId uniqueidentifier references Folder(folderId) --文件ID【UI、FK】
)
1.B.2,
1.C,功能实现代码(Function Implementation Code)返回顶部 |
![]() |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
dbs:apple-notes的更多相关文章
- Unity3D Optimizing Graphics Performance for iOS
原地址:http://blog.sina.com.cn/s/blog_72b936d801013ptr.html icense Comparisons http://unity3d.com/unity ...
- iOS Hardware Guide
来自U3D文档 Hardware models The following list summarizes iOS hardware available in devices of various g ...
- aravel 之父 Taylor Otwell :我是如何工作的
知名 PHP Web 开发框架 Laravel 之父 Taylor Otwell 发文描述了自己的日常工作状态:全职做 Laravel ,朝八晚五,使用 Sublime Text 3 写代码,终端使用 ...
- mac常用快捷键,Mac文件重命名快捷键,Mac OS快速访问系统根目录, MacOS 10.11重要数据的存储位置大全
command+r,相当于F5,刷新页面 command+F5,启动voiceover command+q 关闭当前程序 在Finder中command+/ 打开底部状态栏,可以查看剩余磁盘空间大小 ...
- iOS SDK Release Notes for iOS 9 iOS9 SDK 版本更新说明
Important: This is a preliminary document for an API or technology in development. Apple is supplyin ...
- http://www.apple.com/customer-letter/
Typora Writingshtml, body {overflow-x: initial !important;}html { font-size: 14px; } body { margin: ...
- 05 Go 1.5 Release Notes
Go 1.5 Release Notes Introduction to Go 1.5 Changes to the language Map literals The Implementation ...
- 网络电话pjsip Getting Started: Building for Apple iPhone, iPad and iPod Touch
Getting Started: Building for Apple iPhone, iPad and iPod Touch ¶ Getting Started Preparation Get th ...
- iOS 9的新的改变 iOS SDK Release Notes for iOS 9 说了些改变
iOS 9的新的改变 iOS SDK Release Notes for iOS 9 说了些改变 看了下还算能理解!!!有兴趣可以看看哈!!!不喜勿喷!!后面的对于废除的方法什么有用感觉!!! ...
- 转换到 StoryBoard 的公布说明(Converting to Storyboards Release Notes)
转换到 StoryBoard 的公布说明(Converting to Storyboards Release Notes) 太阳火神的漂亮人生 (http://blog.csdn.net/opengl ...
随机推荐
- js获取客户端操作系统
function detectOS() { var sUserAgent = navigator.userAgent; var isWin = (navigator.platform == " ...
- CLREX
KernelBase.dll!RaiseException() Unknown > coreclr.dll!`RaiseTheExceptionInternalOnly'::`81'::__Bo ...
- Python-事件驱动模型代码
#/usr/env/bin python ''' this is document ''' class Event(object): ''' 事件初始化的一个方式 ''' def __init__(s ...
- StackTrace,Trim
一: Environment.StackTrace 可能我们看到最多的就是catch中的e参数,里面会有一个StackTrace,然后不可否认的这玩意太有用了,它会把调用堆栈 中的信息输出出来,有了它 ...
- linux oracle profile配置
[oracle@db01 ~]$ more .bash_profile # .bash_profile # Get the aliases and functionsif [ -f ~/.bashrc ...
- python--flask使用
Flask是一个使用 Python 编写的轻量级 Web 应用框架.下面我将使用Flask框架,创建一个简单的html页面示例. 1.项目的目录结构如下所示:exweb\ uniqueenv\ a ...
- linux服务之openfiler
架构:b/s 服务器端:封装好的linux系统 客户端:浏览器 相关包:封装好的linux系统 Openfiler imports user and group information from ce ...
- Swift使用Alamofire实现网络请求
Alamofire是一个用Swift编写的HTTP网络库,由此前热门开源项目AFNetworking的的作者mattt开发,可非常简单地用于异步网络通信. 要获取最新版本的 Alamofire,前往h ...
- Win10 64位安装SQL2000(个人版)
默认Win10上是不允许安装SQL2000的,毕竟SQL2000已经是10多年前的老软件了,但是因为它成熟稳定,相比SQL2005,SQL2008R2,SQL2012,SQL2014,体积要小的多,所 ...
- replace() replace_copy()
int a[] = {1,2,3,3,4}; vector<int> v(a, a+5); vector<int> v2; //replace(v.begin(), v.end ...