SQL> select sq_hoge.nextval from dual; NEXTVAL ---------- 12345 なんかだったりした場合、これを100001に変えたい時。 Oracleにはそんな気の利いた機能は存在しないので、泥臭く下記のようにやるのが一番手っ取り早い。 希望の値と現在の値の差を、そのまま増分値にして、 SQL> alter sequence sq_hoge increment by 87655; ここで、nextvalを取得。
Access 2016(64 bit +win10Home)でmdbファイルは開ける MS Access 2013 Later can Open mdb filePowerShellaccessvbsMDB いままで誤読していた Access 2013 で廃止、変更された機能 - Access - Office Support Access 97 データベースは、Access 2013 では開くことができなくなりました。ファイルをアップグレードする必要があります。これを行うには、Access 2010 または Access 2007 でファイルを開き、.accdb ファイル形式で保存した後、Access 2013 で開きます。 この変更は、Access 97 データベースにリンクされているデータベースにも影響します。 と書いているが、そもそも自分がサポート外だの更新をしろだのと言っておいて
ACCESS2013以降(64/32bit)でAccess1.0のMDBを作り、Access2003以降のMDBに変換するVBScriptVBAAccess2013Access1.0 前回Access97/95以前のファイルが作成できなかった これはAccess 2000/2003 +VB6.0 /VB5.0 ODBCDirect 幻の技術で取り上げたようにAccess1.1などは日本で未発売だった。したがってAccess1.0は日本語に対応していないため、dbLangJapaneseなどという定数は使えない。 したがって dbLangGeneral をつかう。 Access 32Bit VBA版(64bitでは動作しません) Sub Main() 'http://kazu-riders.blog.so-net.ne.jp/2009-03-27 'Access 2013 Later 32B
2020/9/30追記 本記事は元々、「SQL記述者全員が理解すべきSELECT文の実行順序のお話」というタイトルで投稿しておりました。 しかし、知見のある方からのコメントと自分でも調べてみた結果、今回紹介している順序はあくまで論理的な処理順序であり、実行順序とは別物ということがわかりました。 誤った知識を布教してしまい申し訳ございません。 2020/9/30のタイミングで、本記事のタイトルを「SQL記述者全員が理解すべきSELECT文の論理的な処理順序のお話」に変更させていただきました。 はじめに 「SQLといえば、エンジニアが扱うスキル」と思われがちですが、最近はマーケターや営業など、非エンジニアの方もSQLを使って、自らデータを抽出し分析する方が増えてきています。 またエンジニアの方でも、ORM任せでなんとなく理解している状態の方もいるのではないでしょうか? 今回は、そんな方々にこそ
今日も、アクセスを取り上げます。 任意のテーブルもしくはクエリーのデータをエクセルファイルに出力する方法をご紹介します。 その際、エクセルのファイル名だけではなく、シート名も指定してみます。 なお、シート名を指定しないと、テーブルもしくはクエリーの名前が シート名となりますよ。 なお、Accessファイルは、デスクトップに保存してあるものとします。 エクセルファイルは、同じディレクトリ(今回は、デスクトップとなります)に 出力されるようにします。 従って、マイドキュメントにAccessファイルが保存してあれば、 エクセルファイルも自動的にマイドキュメントに出力されます。 Access2007でご説明しますが、2003やXPバージョンでも、問題なく動作します。 以下の画像は、今回エクスポートするテーブルのデータです。 T講座 という名前のテーブルです。 フォームをデザインビューで開いて、ボタ
皆さんこんにちは、エンジニアの西尾です。 新しい機能・サービスを開発する際、私は特にデータベース設計に気をつかいます。 データベースはシステムの土台です。 土台が不安定だと、その上に積み上げていくアプリケーションコードがいびつなものになり、つらい思いをします。 また、一度動き出してしまったシステムのデータベース設計を変えるのは、容易なことではありません。 データベース設計には”これだ!”という正解はないと思っています。 サービスの特徴、システムの性質、toB向け/toC向け、Readが多い・少ない、Writeが多い・少ない。 その他もろもろの背景により、データベース設計の仕方も変わってきます。 このテーブルは正規化していないから駄目だ、この設計はいわゆるポリモーフィック関連だから使ってはいけない、などということはありません。 アンチパターンと呼ばれるものも時と場合によっては正解になります。
sqlsとは sqlsとは、いま私が開発中のSQL用Language Serverです。SQLをエディタで編集するときの支援機能を実装したサーバとなっており、主な特徴は以下です。 Language ServerなのでLSクライアントが存在するエディタであればどんなエディタでも利用可能 SQL編集支援機能 自動補完(テーブル名、カラム名など) 定義参照 SQL実行 複数のRDSMSに対応 MySQL PostgreSQL SQLite3 Language Serverとは Language Server(あるいはLanguage Server Protocol)とは、プログラム言語の開発支援機能をエディタに提供するサーバ、およびその通信内容を規定したプロトコルです。ただしサーバといってもほとんどの場合ローカル内にホスティングしてローカルのエディタと通信をします。 ここでは主題ではないので詳し
ワープくん🤡 @warpbtn ぼく「なんか嫌な予感がするから警告いっぱい出したれ」 『このデータを削除すると復活できませんが本当に削除しますか?YES/NO』 『あなたは削除データが復活できないことを確認しました。YES/NO』 『以下の入力欄にDELETEと入力して削除を実行』 ???「なんかデータ消えたんですけど?」 2020-03-12 11:13:24
マイクロソフト、「Azure Cosmos DB」がずっと無料で使える「Free Tier」を発表。地球規模の分散データベースを最大5GBまで マイクロソフトは、分散NoSQLデータベース「Azure Cosmos DB」が期限なく無料で使える「Free Tier」を発表しました。 Activate Free Tier on a new #azurecosmosdb account to get 400 RU/s throughput and 5 GBs storage free each month, for the life of your account. What will you build? #appdev #nosql https://t.co/BmfoWyYcbW — Azure Cosmos DB (@AzureCosmosDB) March 7, 2020 Azure
話したネタ 論理削除とはそもそも何か? 物理削除とは? なぜ、論理削除が生まれてくるのか? SQLアンチパターン 幻の第26章「とりあえず削除フラグ」 理由1: 心理的なハードルの高さ、怖さがある 理由2: 削除したデータを検索対象に入れたい場合がある 理由3: ログとしての用途 理由4: 誤操作をすぐに戻したい アンチパターンとは何か? なぜ、論理削除はアンチパターンとして捉えられるのか? 全てのSQL文のWHERE句に削除フラグが必ず入る LIMIT 1などが蔓延していく 論理削除に気づくきっかけは何か? テーブル設計や、規約から気づく 論理削除というアンチパターンをどのように解いていくか? 論理削除という概念は世の中にまずなく、お客様は論理削除という言葉を使っていない 要件をどのように設計すればいいのか? ORMの論理削除プラグインはあまり良くない 状態遷移として捉える方法 Soft
はじめに さっぶ。どうも、だーやまんです。 この記事は、本番環境でやらかしちゃった人 Advent Calendar 2019 - Qiitaの11日目の記事です。 これは、中途半端な知識でサービスを運用していた結果、タイトル通りの大失敗をしてしまったお話です。個人開発での出来事なので、業務で起きたことかと胃薬を握られていた方はご安心ください。 語るのもすごい恥ずかしいレベルですが、戒めのために晒しておきます。 この記事を読んでほしい人 初めてインターネット上にサービスを公開しようとしている人 喋太郎の利用者様(この場をお借りして、改めてお詫び申し上げます。本当に申し訳ございませんでした。) 背景とか Discord読み上げBot 「喋太郎」にてやらかしました www.dayaman.work 利用者が約10万人 さくらのVPSにてAppサーバ2台、DBサーバ1台で運用 各サーバの死活監視
こんにちは。 今回は、巷で話題のグラフデータベース Neo4j に超入門してみました。 Mac環境であれば語弊なく15分で検証環境の構築と簡単な検証ができるので是非お試しください! そもそもグラフデータベースとは? グラフ構造を持ったデータの保存、探索、集計に最適化されたデータベースです。 RDBでは幾つものも関連テーブルを用意してjoin後集計する必要があった人間関係を示すソーシャルグラフやECサイトにおける購入履歴等で利用されています。 Neo4jは、adidasや、eBay等で実際に運用されている最も人気のあるグラフ型データベースの一つです。 それでは早速動かしてみましょう! インストール 公式 open http://neo4j.com/download-thanks/?edition=community open ~/Downloads/neo4j-community_macos
概要 Ruby on Rails, CakePHP, LaravelといったWebアプリケーションフレームワークには標準でデータベースマイグレーションツールが包含されている。 一方でデータベースマイグレーションをwebアプリケーションと別に管理したいケースもある。別に管理するためにはフレームワークに包含されているツールよりも、スタンドアロンで利用可能なツールの方が良い。本記事ではスタンドアロンで利用可能なデータベースマイグレーションツールを比較してみる。 データベースマイグレーションとは何か データベースマイグレーションはRDBMSのdatabase・スキーマ定義をコード化し、テーブル・インデックス更新を自動化することである。主に下記を実施することができる。 databaseの作成 テーブルの作成・更新 インデックスの作成・更新 DBスキーマのバージョン管理(過去に実行されたSQLが特定の
こんにちは!少し前までProgateでエンジニアのインターンをさせていただいておりました、chisatonと申します。 Progateのアドベントカレンダーに参加させてもらえるだなんて思ってもみなかったので、とても嬉しい限りです。 今私はエンジニアとして別の会社で働かせていただいているのですが、今の部署とProgateではAWSを使用しているという点で共通点があるため、今回はAWSのサービス紹介も兼ねて、どんな時にどのデータベースを選択すべきなのか、についてまとめてみようかと思います。 元ネタは、最近参加させていただいたラスベガスでのAWS re:Inventの"Which Database to Use When?"というセッションになります。 こちらに動画が既にアップされていますので、興味がある方はこちらを見てみてください。 DB選択においてまず考慮すべき3つの項目 Shape Siz
VLOOKUP vs INDEX MATCH vs SQL vs VBA – today you are in for the ultimate Excel Showdown. The VLOOKUP Excel function is one of the most popular functions, around which there has always been much debate. You will most definitely find an article about this function on almost every Excel blog site out there that matters. Similarly there has been much argue about how efficient this function is, when co
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く