C-新增
R-查询
U-更改
D-删除
流程:
这个网站有列出 SQL 指令的语法:
https://www.1keydata.com/tw/sql/sql-syntax.html
微软官方文件-
https://docs.microsoft.com/zh-tw/sql/t-sql/lesson-1-creating-database-objects?view=sql-server-ver15
安装外挂-安装完要重新启动安装-
连线的方法-
可是我这里要用的是MSSQL+安卓的方法~
自己的IP:在命令提示字元下指令 IPCONFIG 就可看到。
PORT:SQL SERVER 预设 1433
USERNAME:这就要看当时建立的帐号
PASSPORT:这就要看当时建立的密码
xml=<> <>
JSON=格式=key:value
资料处理分成三种:
资料-结构化-先规则栏位type-值
半结构化-值-分类
无结构化-档案图片
政府资料开放平台:https://data.gov.tw/
下载下来的档案就是JSON格式(像是EXCEL工作表转过来的)
[]=array
{}=物件
"" 里面是自订的""(资料夹)-""(档案名称)-""(表头)-""(列名)
JSON解析器
http://json.parser.online.fr/
看String parse
放素材档=assets/raw(偏向原始)
res系统素材/限制格式
先配好UI/然後要记的onclick
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:onClick="onclick"
android:text="Load Json"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/show"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="Hello World!"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button" />
</androidx.constraintlayout.widget.ConstraintLayout>
程序码要加上
public void onclick(View view){
}
变成
package com.guessnumber.myjson;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void onclick(View view){
}
}
新增main-new-directory里面新增档案名称assets(注意大小写)-enter
新增.json档
firebase-https://console.firebase.google.com/u/0/
点到REALTIME DATABASE
找到save and retrieve data
先在firebase新增再连结-让他都V
都是false
然後都改true
看到gradle
贴4里面的code到java档
// Write a message to the database
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("message");
myRef.setValue("Hello, World!");
message
就是json的key
Hello, World!
就是json的value
>>: [Day 27] Edge Impulse + BLE Sense实现影像分类(上)
以下笔记摘录自『 The Go Workshop 』。 切片的核心其实还是阵列,切片只是在阵列外套上...
前言 在上一篇的HTTP请求走私之後,已经知道HTTP Header也可以被拿来利用,这篇会更直接的...
今天我们来谈一下使用Parrot Security的Recon-ng进行足迹和侦察 登入Parrot...
Part1 - Function 我们从几个常用的操作开始吧! 型态操作 # random np a...
30天铁人赛到今天就结束了,其实中途遇到很多的问题,因为我平时还有其他工作要做所以写铁人的时间都很赶...