web開發 基本sql 語句

2021-08-20 15:38:09 字數 597 閱讀 5046

作為初學者 學習 web發開 sql語句也是很重要的

create database (student//名字);   建立乙個資料庫

drop database student 刪除乙個資料庫

create table userlogin//名字  建立乙個表

drop table userlogin  刪除乙個表

//查詢

select userid,password from userlogin  從userlogin這個表查詢userid和password

select *from userlogin where userid = 123

//插入資料

insert into userlogin (userid,password) values(123,456)

//修改

update userlogin set password="789" where userid=123 將userid等於123的密碼修改為789

//刪除

delete from userlogin where userid = "123"; //刪除 userid為123的資訊

Sql語句訪問WEB

job裡執行 exec callsendmailpage 這種做法,實際上是,用sqlagent服務充當了你的winform timer或自定義的windows service.通過sp oa系列儲存過程呼叫xmlhttp訪問你的mysendmail.aspx來實現傳送郵件.當然,你可以在頁面加上對...

SQL 基本語句

在查詢分析器中執行如下語句 sp password null,teracypwd sa 把sa的密碼設為 teracypwd 執行成功後有 command s completed successfully.ok insert into 表名稱 values 值1,值2,insert into per...

sql基本語句

sql常用命令 資料的增刪改查 增加資料 插入資料 insert into 表名 字段 字段 values 值,值,值.按需要字段填寫 insert into 表名 values 值,值,值.插入全部字段,自動增長列不寫 刪除資料 記得有外來鍵先刪除主鍵表裡的相應內容 刪除表裡的內容 delete ...