向太阳 发表于 2021-12-21 22:24:19

字段不作为主键,但是有需要唯一值,该如何设置?

字段不作为主键,但是有需要唯一值,该如何设置才能在保存时给出提示,并拒绝存盘。

乐于助人 发表于 2021-12-23 10:32:42

数据表管理,这边有个索引,你可以配置唯一

乐于助人 发表于 2021-12-22 09:46:02

您可以参考一下这个教程,做一个数据接口:https://bbs.iyunbiao.com/forum.php?mod=viewthread&fid=84&tid=6439
通过这个数据接口的返回值,可以在填表公式做提示框,给出提示,拒绝存盘

向太阳 发表于 2021-12-22 22:00:01

不能像数据库一样设置成unique吗?如果有多个字段,那不是很麻烦吗?

向太阳 发表于 2021-12-23 18:37:57

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAECCAYAAAD3vwBsAAAgAElEQVR4Ae2d+5NdVZmG+zf/Af3VKtSEli6LUosqURFqYEqpUZgqycwIgpWByWCcENpAejoJ7UETAVvIgEbIFAECKBCM0aBBZEIjYAdJAIlHYtLpS/oSk74cu0ISaW7v1Hd00SvHfbpPJ+ey1t4PVbv27n3WXutb73q/79nrJGmaxH8ogAIogAKZVKDpL3/5izjQIFQPHD9+XIU/T+rIkdfwKbmKB6rsgabJyUlxoEGoHhifmFBf/4BGDh7Ep+QqHqiyBwBAlQUNtZDGGhcA4OUkVu/GEDcAAABBv1UBAAAQQyGNNUYAAAAAAB4I2gOxFtcY4gYAJH/Qyc8OgB1ADIU01hgBAAAAAHggaA/EWlxjiBsAkPxBJz87AHYAMRTSWGMEAAAAAOCBoD0Qa3GNIW4AQPIHnfzsANgBxFBIY40RAAAAAIAHgvZArMU1hrgBAMkfdPKzA2AHEEMhjTVGAAAAAAAeCNoDsRbXGOIGACR/0MnPDoAdQAyFNNYYAQAAAAB4IGgPxFpcY4gbAJD8QSc/OwB2ADEU0lhjBAAAAADggaA9EGtxjSFuAEDyB5387ADYAcRQSGONEQAAAACAB4L2QKzFNYa4AQDJH3TyswNgBxBDIY01RgAAAAAAHgjaA7EW1xjiDgoAv35uh+7/0aMa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yswNgBxBDIY01RgAAAAAAHgjaA7EW1xjiBgAkf9DJzw6AHUAMhTTWGAEAAAAAeCBoD8RaXGOIGwCQ/EEnPzsAdgAxFNJYYwQAAAAA4IGgPRBrcY0hbgBA8ged/OwA2AHEUEhjjREAAAAAgAeC9kCsxTWGuAEAyR908rMDYAcQQyGNNUYAAAAAAB4I2gOxFtcY4gYAJH/Qyc8OgB1ADIU01hgBAAAAAHggaA/EWlxjiBsAkPxBJz87AHYAMRTSWGMEAAAAAOCBoD0Qa3GNIW4AQPIHnfzsANgBxFBIY40RAAAAAIAHgvZArMU1hrgBAMkfdPKzA2AHEEMhjTVGAAAAAAAeCNoDsRbXGOIGACR/0MnPDoAdQAyFNNYYAQAAAAB4IGgPxFpcY4gbAJD8QSc/OwB2ADEU0lhjBAAAAADggaA9EGtxjSFuAEDyB5387ADYAcRQSGONEQAAAACAB4L2QHOll4QAAADDSURBVKzFNYa4AQDJH3TyswNgBxBDIY01xqbhkYI40CBUDwwOjWl/34D6B0bwKbmKB6rsgaaBwSFxoEGoHug/MKie3j719g/gU3IVD1TZA01TU1PiQINQPXD06DEZBA6PjeFTchUPVNkDTeI/FAhYAQOT7U7GJwoBR0loKBCnAgAgznXLTNQAIDNLzUQboAAAaIDoDFm5AgCgcq1oiQJzVQAAzFUx2tdVAQBQV7kZLGMKAICMLXhs0wUAsa0Y8cakwP8DTg8cQEInwy8AAAAASUVORK5CYII=

向太阳 发表于 2021-12-23 21:31:11

本帖最后由 向太阳 于 2021-12-23 21:34 编辑

设置完成后,确实可以检查唯一性。但是可以填写保存多条没有内容的记录?
利用【字段名=""】和【字段名=常量.空】均查询不到。这是什么原因?如何才能查到呢?

向太阳 发表于 2021-12-24 20:25:01

向太阳 发表于 2021-12-23 21:31
设置完成后,确实可以检查唯一性。但是可以填写保存多条没有内容的记录?
利用【字段名=""】和【字段名=常 ...

不知如何贴图
页: [1]
查看完整版本: 字段不作为主键,但是有需要唯一值,该如何设置?