問題タブ [bigint]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - Nodejs bigint インストール
bigint をインストールしようとしています:
https://github.com/substack/node-bigint
しかし、次のエラーのためにできません:
npm-debug.log ファイルには以下が含まれます。
bigint のインストールに成功した人はいますか? もしそうなら、この問題を経験して解決しましたか?
sql-server-2008 - 主キーのタイプを int から bigint に変更する
データベースに int 型の主キーを持ついくつかのテーブルがあり、bigint 型に変更したいと考えています。テーブルと制約を削除/再作成せずにこれを達成するための最良の戦略は何ですか?
これらの主キーは他のテーブルで外部キーとして使用されているため、それが考慮されます。
mysql - Primary key id reaching limit of bigint data type
I have a table that is exposed to large inserts and deletes on a regular basis (and because of this there are large gaps in the number sequence of the primary id column). It had a primary id column of type 'int' that was changed to 'bigint'. Despite this change, the limit of this datatype will also inevitably be exceeded at some point in the future (current usage would indicate this to be the case within the next year or so).
How do you handle this scenario? I'm wondering (shock horror) whether I even need the primary key column as it's not used in any obvious way in any queries or referenced by other tables etc. Would removing the column be a solution? Or would that sort of action see you expelled from the mysql community in disgust?!
We're already nearly at the 500 million mark for the auto increment id. The table holds keywords associated with file data in a separate table. Each file data row could have as many as 30 keywords associated with it in the keywords table, so they really start to stack up after you've got tens of thousands of files constantly being inserted and deleted. Currently the keyword table contains the keyword and the id of the file it's associated with, so if I got rid of the current primary id column, there would be no unique identifier other than the keyword (varchar) and file id (int) fields combined, which would be a terrible primary key.
All thoughts/answers/experiences/solutions very gratefully received.
c - SHA1 hexdigest から long へ
私はこのPythonコードを持っています(hexdigestはSHA1です):
このコードを D に変換する必要があります。いくつかのことを試しました。
- to!long(hexdigest, 16) – オーバーフローで失敗しました (ulong には大きすぎます)
std.BigInt
バイナリをサポートしていません&
Dでそれをどのように行いますか?C
C ソリューションは D でも機能するため、この質問に関連するタグを付けました。
string - Go で bigint を文字列に変換する
Golangでbig intを文字列(または整数)に変換するにはどうすればよいですか?
php - phpでInt64(long)を使用するが、文字列は使用しない方法は?
dotnet、java、c ++のようなphpでInt64を使用する方法は?
例えば:
mysqlのデータ型はbigint(20)です。phpから値を保存したいと思います。1つの解決策がmysqlプロシージャで文字列を使用していることを知っています。
テーブルケース:
mysqlプロシージャの場合:
phpコードケース:
上記の方法は問題ありませんが、やりたくありません。他に解決策はありますか?
例2:
PHPの読み取りMYSQLデータ出力JSONコードを次のように使用したいと思います。
だがしかし :
どうしたらいいのかわからない?
c++ - 独自のカスタムデータ型をC++のものよりも大きくすることはできますか?
重複の可能性:
C++でbigintを実装する方法
たとえば、「long」型の変数があるとします。longは、-9,223,372,036,854,775,808から9,223,372,036,854,775,807までの値を格納できます。無制限のサイズの整数を作成できる独自のC++データ型を作成することは可能ですか?記憶の観点からは無謀なことは知っていますが、興味があります。
azure-sql-database - SQL Azure フェデレーションで主キーと別の一意の列を持つテーブルを作成する
SQL Azure フェデレーションで uniqueidentifier ID 列と一意の nvarchar(256) 電子メール アドレス列を作成するにはどうすればよいですか? 私は SQL の専門家ではないので、一意の制約を設定する方法や、フェデレーテッド データベースでそれが可能かどうかはわかりません。
編集:
一意の制約を作成する TSQL クエリを見つけましたが、次のエラーが発生します。
「連合テーブルの一意のインデックスまたはクラスター化インデックスには、連合列が含まれている必要があります」
私の連合列は ID 列だと思います。
oracle - OracleエラーでこれまでのBigint
bigint型のテーブルがあります。次のクエリを実行しようとしています。
このエラーが発生します
私はこの質問を見てきましたが、それでもこのエラーを取り除くことはできません。これが私が使用していた1つの値です-1340809355000。
c# - C#変換bigintdecimal
私はSQLServer2005データベースを使用してac#アプリケーションに取り組んでいます。ベースからの値が10進数なのか、bigintなのかわからないまま、データベースからデータリーダーに渡された値を10進数に変換する最良の方法は何ですか?
私のPLAYERオブジェクトでは、PLAYER_IDは10進型です。
私は2つの異なるデータベースを使用しているため、ベースから取得される値はbigintまたはdecimalにすることができます。これが10進数の場合は問題ありませんが、bigintの場合は、エラーが発生します。