表格如下:
在Unity读取并调用时的代码:
而如果想要查看该数据库中的另一个表,不是直接使用Table[1],而是需要更改SELECT * from <?>
的表名
代码:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MySql.Data.MySqlClient;
using System.Data;
using System;
public class getGameUserAccount : MonoBehaviour
{
// Start is