{"id":1863,"date":"2020-07-02T16:57:22","date_gmt":"2020-07-02T07:57:22","guid":{"rendered":"http:\/\/agtech.co.jp\/blog\/?p=1863"},"modified":"2023-06-21T17:33:52","modified_gmt":"2023-06-21T08:33:52","slug":"data_access_from_python","status":"publish","type":"post","link":"https:\/\/www.agtech.co.jp\/blog\/2020\/07\/data_access_from_python\/","title":{"rendered":"\u306f\u3058\u3081\u3066\u306eActian Zen\u300cPython\u304b\u3089\u306e\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u300d\u7de8"},"content":{"rendered":"<p style=\"text-align:center\"><img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/07\/012_image.jpg\" alt=\"\" width=\"500\" height=\"375\" class=\"alignnone size-full wp-image-1860\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/07\/012_image.jpg 912w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/07\/012_image-300x225.jpg 300w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/07\/012_image-768x576.jpg 768w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\r\n\r\n<p>\u300c\u306f\u3058\u3081\u3066\u306eActian Zen\u300d\u30b7\u30ea\u30fc\u30ba\u30fb\u7b2c2\u56de\u76ee\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u521d\u5fc3\u8005\u304b\u3089\u30d7\u30ed\u306b\u307e\u3067\u5e45\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u201dPython\u201d\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u306b\u3001Actian Zen\u306e\u5927\u304d\u306a\u7279\u5fb4\u3067\u3042\u308bSQL\/NoSQL\u306e\u30c7\u30e5\u30a2\u30eb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304b\u3089\u3069\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u304b\u3001\u305d\u306e\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\r\n\r\n<div class=\"note_blog-skyblue\">\r\n<p class=\"marbottom0\"><strong>\u203b\u300c\u306f\u3058\u3081\u3066\u306eActian Zen\u300d\u3068\u306f\u30fb\u30fb\u30fb\u3002<\/strong><br>\u682a\u5f0f\u4f1a\u793e\u30a8\u30fc\u30b8\u30fc\u30c6\u30c3\u30af\u306eWeb\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u62c5\u5f53\u8005\u304c\u767a\u4fe1\u3059\u308b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u88fd\u54c1\u300cActian Zen\u300d\u306e\u8a73\u7d30\u3084\u3001\u95a2\u9023\u77e5\u8b58\u306e\u7fd2\u5f97\u306a\u3069\u306b\u5f79\u7acb\u3064\u60c5\u5831\u304c\u6570\u591a\u304f\u63b2\u8f09\u3055\u308c\u305f\u30d6\u30ed\u30b0\u8a18\u4e8b\u30b7\u30ea\u30fc\u30ba\u3067\u3059\u3002<\/p>\r\n<\/div>\r\n\r\n<p><h3>\uff1c\u306f\u3058\u3081\u3066\u306eActian Zen\u30b7\u30ea\u30fc\u30ba\u306e\u4e00\u89a7\uff1e<\/h3><\/p>\r\n<p>\r\n\uff11\uff09<a href=\"\/blog\/2020\/02\/the-first-actian-zen-series-four-s\/\" target=\"_blank\" rel=\"noopener\">\u300c\uff14\u3064\u306e\u201dS\u201d\u300d\u7de8<\/a><br>\r\n\uff12\uff09\u300cPython\u304b\u3089\u306e\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u300d\u7de8\uff08\u2190\u5f53\u30da\u30fc\u30b8\uff09<br>\r\n\uff13\uff09<a href=\"\/blog\/2020\/11\/first_actian_zen_nosql_or_rdb\/\" target=\"_blank\" rel=\"noopener\">\u300cNoSQL\uff1f\u305d\u308c\u3068\u3082RDB\uff1f\u300d\u7de8<\/a><br>\r\n\uff14\uff09<a href=\"\/blog\/2022\/07\/data_historian_part1\/\" target=\"_blank\" rel=\"noopener\">\u300c\u30c7\u30fc\u30bf\u30d2\u30b9\u30c8\u30ea\u30a2\u30f3\u300d\u7de8<\/a>\r\n<\/p>\r\n\r\n<div class=\"note_blog-skyblue\">\r\n<p class=\"marbottom0\">\u203b \u5f53\u30b5\u30a4\u30c8\u3092\u521d\u3081\u3066\u3054\u89a7\u306b\u306a\u3063\u305f\u65b9\u306f\u3001<a href=\"\/blog\/2021\/01\/greetings\/\" target=\"_blank\" rel=\"noopener\">\u4f1a\u793e\u7d39\u4ecb\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b<\/a>\u304b\u3089\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<\/div>\r\n\r\n<h2>\uff0a\u76ee\u6b21\uff0a<\/h2>\r\n<ol>\r\n\t<li><a href=\"#way1\">\u9ad8\u901f\u306a\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3092\u5b9f\u73fe\u3059\u308b\u300cBtrieve API\u300d\u3068\u306f<\/a><\/li>\r\n\t<li><a href=\"#way2\">Btrieve API\u304c\u300cBtrieve 2 API\u300d\u306b\u9032\u5316\u3057\u305f<\/a><\/li>\r\n\t<li><a href=\"#way3\">Btrieve 2 API\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3057\u3087\u3046<\/a><\/li>\r\n<\/ol>\r\n\r\n<h2>\u9ad8\u901f\u306a\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3092\u5b9f\u73fe\u3059\u308b\u300cBtrieve API\u300d\u3068\u306f<\/h2>\r\n\r\n<p>Actian Zen\u306e\u524d\u8eab\u3067\u3042\u308bBtrieve\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u4ee5\u6765\u300140\u5e74\u8fd1\u304f\u300cBtrieve API\u300d\u3068\u3044\u3046\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u7528\u306e\u30ed\u30fc\u30ec\u30d9\u30ebAPI \u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u6240\u8b02NoSQL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u305f\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\r\n\r\n<p>Btrieve API\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3067\u3001\u4ed6\u793e\u306eSQL\u7cfb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u88fd\u54c1\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u578b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3044\u3063\u305fNoSQL\u7cfb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u88fd\u54c1\u3088\u308a\u3082\u9ad8\u901f\u306b\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u3082\u3061\u308d\u3093\u3001\u7686\u69d8\u304c\u6163\u308c\u89aa\u3057\u3093\u3067\u3044\u308bSQL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3082\u53ef\u80fd\u3067\u3059\u3002\uff09<\/p>\r\n\r\n<h2>Btrieve API\u304c\u300cBtrieve 2 API\u300d\u306b\u9032\u5316\u3057\u305f<\/h2>\r\n\r\n<p>Btrieve API\u306f\u3001\u4e3b\u306bC\/C++\u3084Visual Basic\u3001COBOL\u306e\u958b\u767a\u8005\u304c\u5229\u7528\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u30012018\u5e74\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fActian Zen v13\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3057\u305f\u300cBtrieve 2 API\u300d\u304c\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\u300cBtrieve 2 API\u300d\u306f\u3001Perl\u3001PHP\u3001\u304a\u3088\u3073 Python\u3067\u306e\u5229\u7528\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\r\n\r\n<p>Btrieve 2 API\u306f\u3001Btrieve API\u3068\u6bd4\u3079\u3066\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u76f4\u611f\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u3042\u308a\u3001\u95a2\u6570\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8\u3092\u5927\u5e45\u306b\u30ab\u30c3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u5b9f\u969b\u306b\u79c1\u3082\u4e21\u65b9\u306e\u95a2\u6570\u3092\u5b66\u3093\u3067\u307f\u307e\u3057\u305f\u304c\u3001Btrieve 2 API\u306e\u307b\u3046\u304c\u3088\u308a\u65e9\u304f\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002\uff09\u4e0a\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u4ee5\u5916\u3067\u306f\u3001C\/C++\u3084C#\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u662f\u975e\u3054\u6d3b\u7528\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n\r\n<h2>Btrieve 2 API\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3057\u3087\u3046<\/h2>\r\n\r\n<p>\u3053\u3053\u304b\u3089\u306f\u672c\u984c\u306e\u3001Python\u304b\u3089Actian Zen\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u74b0\u5883\u69cb\u7bc9\u306e\u624b\u9806\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u30b7\u30f3\u30d7\u30eb\u306a\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4e00\u7dd2\u306b\u8a66\u3057\u306a\u304c\u3089\u30d6\u30ed\u30b0\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001Actian Zen\u306fv15 SP2\u3001Python\u306f3.11.x\uff08Windows\u7248\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u65e2\u306b\u305d\u306e\u4ed6\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u304a\u4f7f\u3044\u306e\u65b9\u306f\u5225\u306ePC\u3067\u65b0\u898f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3044\u305f\u3060\u304f\u304b\u3001\u300c<a href=\"\/products\/actian\/docs_portal\/\" target=\"_blank\" rel=\"noopener noreferrer\">Actian \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 \u30dd\u30fc\u30bf\u30eb\uff08\u65e5\u672c\u8a9e\u7248\uff09<\/a>\u300d\u306e\u201d<a href=\"\/products\/actian\/docs_portal\/Zen\/btrieve2v15\/html\/btrievePython.html\" target=\"_blank\" rel=\"noopener noreferrer\">Python \u3067\u306e Btrieve \u306e\u4f7f\u7528<\/a>\u201d\u3067\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3084Linux\u4e0a\u3067\u306e\u624b\u9806\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n<p>\uff08Python\u306f\u3001\u4e00\u53f0\u306ePC\u306b\u8907\u6570\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u540c\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u304c\u3001Actian Zen\u306f\uff11\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u307f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u70b9\u3001\u3054\u7559\u610f\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\r\n\r\n<p>\u307e\u305f\u3001\u4e0a\u8a18\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u3064\u3044\u3066\u306f\u3001Btrieve 2 API\u306eSDK\u306b\u540c\u68b1\u3055\u308c\u3066\u3044\u308bPerl, PHP, Python\u7528\u306eSWIG\uff08Simplified Wrapper and Interface Generator\uff09\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001Python\u5411\u3051\u306eBtrieve 2 API\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5f0a\u793e\u306e\u307b\u3046\u3067\u4e8b\u524d\u306b\u4f5c\u6210\u3057\u3066\u304a\u308a\u3001\u7686\u69d8\u3082\u3054\u4f7f\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002\uff08\u4e0b\u8a18\u624b\u9806\uff13\u306b\u8a18\u8f09\u306eURL\u3088\u308a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\uff09<\/p>\r\n\r\n<p>\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5f93\u6765\u306e\u74b0\u5883\u69cb\u7bc9\u306b\u5fc5\u8981\u3060\u3063\u305f\u4f5c\u696d\u3092\u5927\u5e45\u306b\u30ab\u30c3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3044\u307e\u3059\uff01\u3067\u306f\u3001\u624b\u9806\u306e\u8aac\u660e\u306b\u79fb\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\r\n\r\n<h3>\uff11\uff09Actian Zen v15 SP2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\r\n\r\n<p>\u4ee5\u4e0b\u306eURL\u3088\u308a\u3001Actian Zen v15 SP2\u306e\u8a55\u4fa1\u7248\u3092\u304a\u7533\u8fbc\u307f\u3044\u305f\u3060\u304d\u307e\u3059\u3068\u3001\u5f0a\u793e\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528\u306eURL\u3092\u8a18\u8f09\u3057\u305f\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3044\u305f\u3057\u307e\u3059\u3002\u305d\u306eURL\u3088\u308aActian Zen v15 SP2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<p>&#8211; Actian Zen v15\u8a55\u4fa1\u7248\u306e\u304a\u7533\u3057\u8fbc\u307f<br \/>\r\n\u25bc <a href=\"\/actian\/zen\/v15\/trial\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.agtech.co.jp\/actian\/zen\/v15\/trial\/<\/a><\/p>\r\n\r\n<p>\r\n<table style=\"border-collapse: collapse; width: 100%;\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 100%; text-align: center; border:none;\">\r\n\r\n<img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2023\/04\/012_v15SP2WGE_Trial_Install.png\" alt=\"\" width=\"666\" height=\"370\" class=\"alignnone size-medium wp-image-4411\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2023\/04\/012_v15SP2WGE_Trial_Install.png 620w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2023\/04\/012_v15SP2WGE_Trial_Install-300x166.png 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><br \/>\r\n\uff08Actian Zen Workgroup\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u958b\u59cb\u753b\u9762\uff09<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n\r\n<h3>\uff12\uff09Python 3.11.x\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\r\n\r\n<p>\u4ee5\u4e0b\u306eURL\u3088\u308a\u300164\u30d3\u30c3\u30c8\u7248Python 3.11.x\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\uff08Windows x86-64 executable installer\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<p>&#8211; Python 3.11.x\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\r\n\u25bc <a href=\"https:\/\/www.python.org\/downloads\/windows\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.python.org\/downloads\/windows\/<\/a><\/p>\r\n\r\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\u3053\u3068\u3067\u3001Python\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092PC\u4e0a\u306e\u3069\u306e\u5834\u6240\u304b\u3089\u3067\u3082\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u4eca\u56de\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u306f\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\u3088\u3046\u306b\u304a\u9858\u3044\u3057\u307e\u3059\u3002\uff09<\/p>\r\n\r\n<p>\r\n<table style=\"border-collapse: collapse; width: 100%;\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 100%; text-align: center; border:none;\">\r\n<img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2023\/03\/012_Python_Install_3112.png\" alt=\"\" width=\"666\" height=\"411\" class=\"alignnone size-full wp-image-4297\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2023\/03\/012_Python_Install_3112.png 656w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2023\/03\/012_Python_Install_3112-300x185.png 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><br \/>\r\n\uff08Python\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u958b\u59cb\u753b\u9762\uff09<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/p>\r\n\r\n<h3>\uff13\uff09Btrieve 2 API\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\r\n\r\n<p>\u30ed\u30fc\u30ab\u30eb\u4e0a\u306e\u4efb\u610f\u306e\u5834\u6240\u306b\u300cMyPrograms\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u65b0\u898f\u4f5c\u6210\u3057\uff08\u203b\uff09\u3001\u4ee5\u4e0b\u306eURL\u3088\u308a\u3001Btrieve 2 API\u30e2\u30b8\u30e5\u30fc\u30eb\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002ZIP\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u5f8c\u3001\u201d_btrievePython.pyd\u201d\u3068\u201d btrievePython.py\u201d\u3092\u300cMyPrograms\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\uff08\u203b \u5171\u6709\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u4e0a\u306b\u300cMyPrograms\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\uff09<\/p>\r\n\r\n<p>&#8211; Btrieve 2 API\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\r\n\u25bc <a href=\"https:\/\/s3-ap-northeast-1.amazonaws.com\/agtech.co.jp\/download\/blog\/Btrieve2API_Python.zip\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/s3-ap-northeast-1.amazonaws.com\/agtech.co.jp\/download\/blog\/Btrieve2API_Python.zip<\/a><\/p>\r\n\r\n<h3>\uff14\uff09Python\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c<\/h3>\r\n\r\n<p>\u4e0a\u8a18\uff13\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fZIP\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001Btrieve 2 API \u3092\u8a18\u8ff0\u3057\u305fPython\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\uff08Sample_Btrieve2API_Python.py\uff09\u304c\u540c\u68b1\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u300cMyPrograms\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<p>\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3044\u305f\u3060\u304f\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059\u304c\u30015\u884c\u76ee\u3067Btrieve 2 API\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\timport os<br \/>\r\n\t\t\tos.add_dll_directory (&#8220;C:\\Program Files\\Actian\\Zen\\Bin&#8221;)<br \/>\r\n\t\t\timport sys<br \/>\r\n\t\t\timport struct<br \/>\r\n\t\t\timport btrievePython as btrv<br \/>\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n<p>\u203b \u3082\u3057\u3001\u300cImportError: DLL load failed: \u6307\u5b9a\u3055\u308c\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u300d\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001Visual Studio 2015\u30012017\u3001\u304a\u3088\u3073 2019 \u7528 Microsoft Visual C++ \u518d\u9812\u5e03\u53ef\u80fd\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u300cx64: vc_redist.x64.exe\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<p style=\"text-align:center\">\r\n<img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/07\/012_API.png\" alt=\"\" width=\"380\" height=\"326\" class=\"alignnone size-full wp-image-1859\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/07\/012_API.png 380w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/07\/012_API-300x257.png 300w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><\/p>\r\n\r\n<p>\u3055\u3041\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3084Spyder\u3068\u3044\u3063\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u3057\u3066\u300cMyPrograms\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\uff08Sample_Btrieve2API_Python.py\uff09\u3092\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\r\n\r\n<p>\r\n\uff11\uff09\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u65b0\u3057\u3044\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001\u5165\u529b\u3057\u305f\u540d\u524d\u3092\u767b\u9332\u3057\u305f\u30ec\u30b3\u30fc\u30c9\u3092\u9806\u756a\u306b\u633f\u5165\u3057\u307e\u3059\u3002<br>\r\n\uff12\uff09\u633f\u5165\u3057\u305f\u30ec\u30b3\u30fc\u30c9\u306e\u5408\u8a08\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u3001\u30ec\u30b3\u30fc\u30c9\u6570\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br>\r\n\uff13\uff09\u5165\u529b\u3057\u305f\u540d\u524d\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u691c\u7d22\u3057\u3001\u8a72\u5f53\u306e\u30ec\u30b3\u30fc\u30c9\u304c\u898b\u3064\u304b\u3063\u305f\u304b\u3069\u3046\u304b\u3092\u8868\u793a\u3057\u307e\u3059\u3002><\/p>\r\n\r\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5185\u5bb9\u3092\u7406\u89e3\u3057\u3001\u5b9f\u884c\u3067\u304d\u305f\u3053\u3068\u3067\u3001Btrieve 2 API\u30de\u30b9\u30bf\u30fc\u306e\u6700\u521d\u306e\u4e00\u6b69\u3092\u8e0f\u307f\u51fa\u3057\u307e\u3057\u305f\uff01<\/p>\r\n\r\n<p>\u203b\u672c\u683c\u7684\u306bBtrieve 2 API\u3092\u5b66\u7fd2\u3055\u308c\u305f\u3044\u65b9\u5411\u3051\u306e\u65b0\u3057\u3044\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u5f8c\u65e5\u516c\u958b\u4e88\u5b9a\u3067\u3059\u3002\uff08\u4ee3\u8868\u7684\u306a\u95a2\u6570\u3068Python\u4e0a\u3067\u306e\u305d\u308c\u3089\u306e\u5177\u4f53\u7684\u306a\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002\uff09\u3069\u3046\u305e\u3054\u671f\u5f85\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n<p>\u306a\u304a\u3001SQL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001pyodbc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bpip\u30b3\u30de\u30f3\u30c9\u3092\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\tpip install pyodbc<br \/>\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n<p>\u203b \u3082\u3057\u3001\u300cerror: Microsoft Visual C++ 14.0 is required. Get it with &#8220;Build Tools for Visual Studio&#8221;:\u300d\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u6700\u65b0\u7248\u306e\u300cBuild Tools for Visual Studio 2019\u300d\u3082\u3057\u304f\u306f\u300cBuild Tools for Visual Studio 2017\u300d\u306e\u300cvs_BuildTools.exe\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<p>SQL\u306b\u3064\u3044\u3066\u3082\u3001Python\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\uff08Sample_SQL_Python.py\uff09\u304c\u4e0a\u8a18\u624b\u9806\uff13\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fZIP\u30d5\u30a1\u30a4\u30eb\u306b\u540c\u68b1\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5148\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u540c\u69d8\u306e\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4e0a\u8a18pip\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u306e\u3046\u3048\u3001\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u958b\u767a\u8005\u5411\u3051\u30da\u30fc\u30b8\u3082\u3042\u308f\u305b\u3066\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\uff08CODE PROJECT\u3068\u3044\u3046\u30b5\u30a4\u30c8\u306b\u63b2\u8f09\u3055\u308c\u305fActian Zen\u95a2\u9023\u30da\u30fc\u30b8\u306e\u7ffb\u8a33\u7248\u306b\u306a\u308a\u307e\u3059\u3002\uff09<\/p>\r\n\r\n<p>&#8211; Linux\uff08Raspberry Pi\uff09\u74b0\u5883\u3067\u5b9f\u884c\u3059\u308bPython\u30d7\u30ed\u30b0\u30e9\u30e0<br \/>\r\n\u25bc <a href=\"\/actian\/zen\/reference\/codeproject02\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.agtech.co.jp\/blog\/zen\/reference\/codeproject02\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"\u300c\u306f\u3058\u3081\u3066\u306eActian Zen\u300d\u30b7\u30ea\u30fc\u30ba\u30fb\u7b2c2\u56de\u76ee\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u521d\u5fc3\u8005\u304b\u3089\u30d7\u30ed\u306b\u307e\u3067\u5e45\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u201dPython\u201d\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u306b\u3001Actian Zen\u306e\u5927\u304d\u306a\u7279\u5fb4\u3067\u3042\u308bSQL\/NoSQL\u306e\u30c7\u30e5\u30a2\u30eb\u30a4\u30f3 [&hellip;]","protected":false},"author":1,"featured_media":1860,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"product":[58,75,81,76],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1863"}],"collection":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=1863"}],"version-history":[{"count":35,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1863\/revisions"}],"predecessor-version":[{"id":7670,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1863\/revisions\/7670"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/media\/1860"}],"wp:attachment":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=1863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=1863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=1863"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/product?post=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}